diff options
-rw-r--r-- | plugins/infra/nattable/org.eclipse.papyrus.infra.nattable.properties/src/org/eclipse/papyrus/infra/nattable/properties/modelelement/NatTableModelElement.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/infra/nattable/org.eclipse.papyrus.infra.nattable.properties/src/org/eclipse/papyrus/infra/nattable/properties/modelelement/NatTableModelElement.java b/plugins/infra/nattable/org.eclipse.papyrus.infra.nattable.properties/src/org/eclipse/papyrus/infra/nattable/properties/modelelement/NatTableModelElement.java index 00ec6b126ea..991a50558c4 100644 --- a/plugins/infra/nattable/org.eclipse.papyrus.infra.nattable.properties/src/org/eclipse/papyrus/infra/nattable/properties/modelelement/NatTableModelElement.java +++ b/plugins/infra/nattable/org.eclipse.papyrus.infra.nattable.properties/src/org/eclipse/papyrus/infra/nattable/properties/modelelement/NatTableModelElement.java @@ -580,10 +580,16 @@ public class NatTableModelElement extends EMFModelElement { public void dispose() { }
public boolean isLabelProperty(Object element, String property) { return false; }
public Image getImage(Object element) {
+ if (element == null) {
+ return null;
+ }
ViewPrototype proto = ViewPrototype.get((PapyrusView)element);
return proto.getIcon();
}
public String getText(Object element) {
+ if (element == null) {
+ return null;
+ }
ViewPrototype proto = ViewPrototype.get((PapyrusView)element);
return proto.getQualifiedName();
}
|