Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnaud Cuccuru2014-07-09 08:13:55 +0000
committerCamille Letavernier2014-07-21 12:11:33 +0000
commitd5c2ba9d387550d148ec8a7b6248282f4c06b133 (patch)
tree7f30b511909788b750330f13d4392ed24734e281 /extraplugins/moka
parent0168c56cd81bff37a3c07bb181fcf300d4b913c2 (diff)
downloadorg.eclipse.papyrus-d5c2ba9d387550d148ec8a7b6248282f4c06b133.tar.gz
org.eclipse.papyrus-d5c2ba9d387550d148ec8a7b6248282f4c06b133.tar.xz
org.eclipse.papyrus-d5c2ba9d387550d148ec8a7b6248282f4c06b133.zip
439203: [Moka] oepm.ui.presentation.AnimationUtils.getDiagrams may cause
null pointer exceptions https://bugs.eclipse.org/bugs/show_bug.cgi?id=439203 Adding a check if the semantic element retrieved from a view is null Change-Id: I5fee25b47bc6b3badfd609a51443d9fe26e3d2c5
Diffstat (limited to 'extraplugins/moka')
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.ui/src/org/eclipse/papyrus/moka/ui/presentation/AnimationUtils.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/extraplugins/moka/org.eclipse.papyrus.moka.ui/src/org/eclipse/papyrus/moka/ui/presentation/AnimationUtils.java b/extraplugins/moka/org.eclipse.papyrus.moka.ui/src/org/eclipse/papyrus/moka/ui/presentation/AnimationUtils.java
index d5af013b3c5..478c508e858 100644
--- a/extraplugins/moka/org.eclipse.papyrus.moka.ui/src/org/eclipse/papyrus/moka/ui/presentation/AnimationUtils.java
+++ b/extraplugins/moka/org.eclipse.papyrus.moka.ui/src/org/eclipse/papyrus/moka/ui/presentation/AnimationUtils.java
@@ -160,7 +160,7 @@ public class AnimationUtils {
EObject cddView = i.next();
if(cddView instanceof View) {
EObject element = ((View)cddView).getElement();
- if(element != modelElement) {
+ if(element != modelElement && element != null) {
List<Diagram> diags = eObjectToDiagrams.get(element);
if(diags == null) {
diags = new ArrayList<Diagram>();

Back to the top