Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvlorenzo2012-09-14 07:17:47 -0400
committervlorenzo2012-09-14 07:17:47 -0400
commit88ae8ba922d486a5d50bb4f738d4b9be2cb1e1a9 (patch)
tree1c905b30ab92d04880535d90f70e7381a9d05560 /plugins/infra
parent656e29fb9d4f298becfe8bad737335406f030b4b (diff)
downloadorg.eclipse.papyrus-88ae8ba922d486a5d50bb4f738d4b9be2cb1e1a9.tar.gz
org.eclipse.papyrus-88ae8ba922d486a5d50bb4f738d4b9be2cb1e1a9.tar.xz
org.eclipse.papyrus-88ae8ba922d486a5d50bb4f738d4b9be2cb1e1a9.zip
389477: NPE in org.eclipse.papyrus.infra.core.lifecycleevents.LifeCycleEventsProvider.AbstractEventListenersLazyList.clear()
https://bugs.eclipse.org/bugs/show_bug.cgi?id=389477
Diffstat (limited to 'plugins/infra')
-rw-r--r--plugins/infra/core/org.eclipse.papyrus.infra.core/src/org/eclipse/papyrus/infra/core/lifecycleevents/LifeCycleEventsProvider.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/infra/core/org.eclipse.papyrus.infra.core/src/org/eclipse/papyrus/infra/core/lifecycleevents/LifeCycleEventsProvider.java b/plugins/infra/core/org.eclipse.papyrus.infra.core/src/org/eclipse/papyrus/infra/core/lifecycleevents/LifeCycleEventsProvider.java
index 1c14cbd698b..6e7ea008a91 100644
--- a/plugins/infra/core/org.eclipse.papyrus.infra.core/src/org/eclipse/papyrus/infra/core/lifecycleevents/LifeCycleEventsProvider.java
+++ b/plugins/infra/core/org.eclipse.papyrus.infra.core/src/org/eclipse/papyrus/infra/core/lifecycleevents/LifeCycleEventsProvider.java
@@ -229,7 +229,9 @@ public class LifeCycleEventsProvider implements ILifeCycleEventsProvider {
* Remove all listeners.
*/
protected void clear() {
- listeners.clear();
+ if (listeners != null) {
+ listeners.clear();
+ }
}
}

Back to the top