Changeset 31733 for main

Show
Ignore:
Timestamp:
13.06.2017 20:38:27 (2 years ago)
Author:
ak19
Message:

Bugfix to nullpointer exception caused when converting a GS2 collection to GS3. OpenCollectionDialog?.convertToGS3Collection(OpenCollectionDialog?.java:400) was passing in null as the caller parameter to the GShell constructor. This is added to the GShell's listener's list. Need to avoid adding null callers to listener list, to avoid firing off events to null variables.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/gli/src/org/greenstone/gatherer/shell/GShell.java

    r31692 r31733  
    143143    this.setPriority(Thread.MIN_PRIORITY); 
    144144    listeners = new CopyOnWriteArrayList<GShellListener>(); 
    145     listeners.add(caller); 
     145    if(caller != null) { 
     146        listeners.add(caller); 
     147    } 
    146148    } 
    147149    /** This method adds another shell listener to this process.