This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Action a = null;
if (arr.length == 1 && arr[0] instanceof Action) {
a = (Action)arr[0];
a.removePropertyChangeListener(weakL);
a.addPropertyChangeListener(weakL);
}
// plus always make sure we are listening on the actions
if (listen[0] != a) {
listen[0].removePropertyChangeListener(weakL);
listen[0].addPropertyChangeListener (weakL);