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

    r130 r140  
    8686    public void uponClose() 
    8787    { 
    88         event.towCompany = txtCompany.getText(); 
    89         event.towBeat = txtBeat.getText(); 
    90         event.towConfNum = txtConfirmationNumber.getText(); 
    91         event.towPubNum = txtPublicNumber.getText(); 
     88        if (event != null) 
     89        { 
     90            event.towCompany = txtCompany.getText(); 
     91            event.towBeat = txtBeat.getText(); 
     92            event.towConfNum = txtConfirmationNumber.getText(); 
     93            event.towPubNum = txtPublicNumber.getText(); 
     94        } 
    9295    } 
    9396 
Note: See TracChangeset for help on using the changeset viewer.