Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcletavernie2012-05-16 14:37:10 +0000
committercletavernie2012-05-16 14:37:10 +0000
commitd9fc5ea99727ee8aa26c2aeca3d702a801f5abcf (patch)
treec9a001afb1ac47ab4ad94dc40db95e0854b20a8e /plugins/views/properties
parentbcba92bbe6caf9420220461cb104ac7cc4f196bf (diff)
downloadorg.eclipse.papyrus-d9fc5ea99727ee8aa26c2aeca3d702a801f5abcf.tar.gz
org.eclipse.papyrus-d9fc5ea99727ee8aa26c2aeca3d702a801f5abcf.tar.xz
org.eclipse.papyrus-d9fc5ea99727ee8aa26c2aeca3d702a801f5abcf.zip
357193: Too many NullPointerException (NPE)
https://bugs.eclipse.org/bugs/show_bug.cgi?id=357193 Fix a NPE in the property view, when the property editor is readOnly.
Diffstat (limited to 'plugins/views/properties')
-rw-r--r--plugins/views/properties/org.eclipse.papyrus.views.properties/src/org/eclipse/papyrus/views/properties/widgets/AbstractPropertyEditor.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/views/properties/org.eclipse.papyrus.views.properties/src/org/eclipse/papyrus/views/properties/widgets/AbstractPropertyEditor.java b/plugins/views/properties/org.eclipse.papyrus.views.properties/src/org/eclipse/papyrus/views/properties/widgets/AbstractPropertyEditor.java
index 47badd5c0f1..0619db77a8d 100644
--- a/plugins/views/properties/org.eclipse.papyrus.views.properties/src/org/eclipse/papyrus/views/properties/widgets/AbstractPropertyEditor.java
+++ b/plugins/views/properties/org.eclipse.papyrus.views.properties/src/org/eclipse/papyrus/views/properties/widgets/AbstractPropertyEditor.java
@@ -409,6 +409,10 @@ public abstract class AbstractPropertyEditor implements IChangeListener, Customi
* @return The IObservable associated to this propertyEditor
*/
protected IObservable getInputObservable() {
+ if(input == null || propertyPath == null) {
+ return null;
+ }
+
if(listEditor != null) {
return getInputObservableList();
}

Back to the top