Ticket #27 (closed defect: fixed)

Opened 9 years ago

Last modified 9 years ago

NullPointerException thrown if Incidents folder not found.

Reported by: jdalbey Owned by: bmcguffin
Priority: Medium Milestone: ScriptBuilder 1
Component: none Version: 1.0
Severity: Minor Keywords:
Cc:

Description

If the user tries to open the Incident Palette and the Incidents folder can't be found the app throws an exception. It should probably display an error dialog with fixup directions.

java -jar ScriptBuilder.jar 
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
	at scriptbuilder.gui.IncidentPaletteFrame.loadIncidentsFromFiles(IncidentPaletteFrame.java:85)
	at scriptbuilder.gui.IncidentPaletteFrame.<init>(IncidentPaletteFrame.java:64)
	at scriptbuilder.gui.ScriptBuilderFrame.loadIncidentActionPerformed(ScriptBuilderFrame.java:1880)

Change History

comment:1 Changed 9 years ago by bmcguffin

  • Status changed from new to accepted

comment:2 Changed 9 years ago by bmcguffin

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

Upon failure to locate the incidents folder, the program now displays a window reporting the error along with instructions on how to correct it: namely, restarting the program from the same directory as the incidents folder.

Note: See TracTickets for help on using tickets.