Changeset 31733


Ignore:
Timestamp:
2017-06-13T20:38:27+12:00 (7 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.

File:
1 edited

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.
Note: See TracChangeset for help on using the changeset viewer.