Ticket #67 (closed defect: fixed)

Opened 8 years ago

Last modified 8 years ago

Exception thrown after removing event (ScriptBuilder)

Reported by: jdalbey Owned by: bmcguffin
Priority: High Milestone: 2017 Contract Final Report
Component: ScriptBuilder GUI Version:
Severity: Major Keywords:
Cc:

Description

Start application.
Create new incident. In the Incident Editor that appears, click "CAD" button and drop it on timeline. In the Event Editor that appears add Cad Log Text of "Humpty Dumpty". Click in the upper right corner to close the window.
Click on the same event in the timeline, causing the Event Editor to reappear showing a second tab labeled "CAD Log 2". Click "Remove This Event". The second tab disappears. Click the window close button in the upper right corner. The application hangs and the console displays exception:

Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
	at event.editor.CADLogPanel.uponClose(CADLogPanel.java:54)
	at event.editor.frame.PropertyModel.closePanels(PropertyModel.java:130)
	at event.editor.frame.Editor$4.windowClosing(Editor.java:161)
	at java.awt.AWTEventMulticaster.windowClosing(AWTEventMulticaster.java:349)
	at java.awt.AWTEventMulticaster.windowClosing(AWTEventMulticaster.java:349)
	at java.awt.Window.processWindowEvent(Window.java:2054)
	at javax.swing.JFrame.processWindowEvent(JFrame.java:305)
	at java.awt.Window.processEvent(Window.java:2013)

Change History

comment:1 Changed 8 years ago by bmcguffin

  • Status changed from new to accepted

Was able to reproduce the bug. Working on this now.

comment:2 Changed 8 years ago by bmcguffin

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

Fixed this in revision 140. Needed a null check for the currently open event before closing the window; otherwise, the window tried to save the latest state of an event that no longer existed.

Note: See TracTickets for help on using tickets.