Changeset 140 in tmcsimulator-scriptbuilder for trunk/src/event/editor/MaintenanceRadioPanel.java


Ignore:
Timestamp:
12/22/2017 02:05:13 PM (8 years ago)
Author:
bmcguffin
Message:

Fixed defect #67. Removing an event and then closing the event editor window no longer causes the program to hang; a null check for the event is encountered before taking action upon close of the window.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/event/editor/MaintenanceRadioPanel.java

    r130 r140  
    4545    public void uponClose() 
    4646    { 
    47         event.message = jTextArea1.getText(); 
     47        if (event != null) 
     48        { 
     49            event.message = jTextArea1.getText(); 
     50        } 
    4851    } 
    4952 
Note: See TracChangeset for help on using the changeset viewer.