Changeset 140 in tmcsimulator-scriptbuilder for trunk/src/event/editor/CADLogPanel.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/CADLogPanel.java

    r130 r140  
    2323        initComponents(); 
    2424    } 
     25 
    2526    /** 
    2627     * Load the script event associated with this editor panel. 
     
    5253    public void uponClose() 
    5354    { 
    54         event.detail = CadTextField.getText(); 
     55        if (event != null) 
     56        { 
     57            event.detail = CadTextField.getText(); 
     58        } 
    5559    } 
    5660 
Note: See TracChangeset for help on using the changeset viewer.