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
c639bd453f
commit
756577400c
@ -189,11 +189,10 @@ public class Configuration implements Cloneable, ChangeSource, ComponentChangeLi
|
|||||||
*/
|
*/
|
||||||
public void release() {
|
public void release() {
|
||||||
rocket.removeComponentChangeListener(this);
|
rocket.removeComponentChangeListener(this);
|
||||||
listenerList = null;
|
listenerList = new ArrayList<EventListener>();
|
||||||
rocket = null;
|
rocket = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//////////////// Listeners ////////////////
|
//////////////// Listeners ////////////////
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
x
Reference in New Issue
Block a user