Ticket #202 (closed defect: fixed)
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
Note: See
TracTickets for help on using
tickets.
