Ticket #202 (closed defect: fixed)

Opened 6 years ago

Last modified 6 years ago

Script Builder outputs incomplete CCTV tag

Reported by: jdalbey Owned by: jdalbey
Priority: High Milestone: May 2021 Training
Component: ScriptBuilder GUI Version:
Severity: Minor Keywords:
Cc:

Description

Currently ScriptBuilder outputs an empty CCTV tag:

<CCTV_INFO></CCTV_INFO>

This causes Simulator to crash because it is expecting the tag to contain attributes.

SEVERE: Exception in parsing CCTV_INFO node.
java.lang.NumberFormatException: null
	at java.lang.Integer.parseInt(Integer.java:542)
	at java.lang.Integer.parseInt(Integer.java:615)
	at tmcsim.client.cadclientgui.ScriptHandler.startElement(ScriptHandler.java:239)

Currently this tag is never used in the simulation so I think the workaround for the moment is to have ScriptBuilder generate a
tag with default values for the attributes. It would look like this

<CCTV_INFO ID="0" Dir="NORTH" Toggle="false"/>

Change History

comment:1 Changed 6 years ago by jdalbey

  • Owner changed from sdanthin to jdalbey
  • Status changed from new to accepted

comment:2 Changed 6 years ago by jdalbey

  • Status changed from accepted to closed
  • Resolution set to fixed

Fixed in #153.

comment:3 Changed 6 years ago by jdalbey

Oops, I mean r153.

Note: See TracTickets for help on using tickets.