Fixed NPE reported through a bug report. Somehow the listenerList was
null when a change event was fired. Don't know how this really can happen, but protecting against the NPE isn't a bad idea.
This commit is contained in:
parent
78d0eaefbd
commit
6fbbef1bb5
@ -189,11 +189,10 @@ public class Configuration implements Cloneable, ChangeSource, ComponentChangeLi
|
||||
*/
|
||||
public void release() {
|
||||
rocket.removeComponentChangeListener(this);
|
||||
listenerList = null;
|
||||
listenerList = new ArrayList<EventListener>();
|
||||
rocket = null;
|
||||
}
|
||||
|
||||
|
||||
//////////////// Listeners ////////////////
|
||||
|
||||
@Override
|
||||
|
Loading…
x
Reference in New Issue
Block a user