diff options
author | Henrik Rentz-Reichert | 2011-11-29 13:16:11 +0000 |
---|---|---|
committer | Henrik Rentz-Reichert | 2011-11-29 13:16:11 +0000 |
commit | 64c507dbb1cc7b43226567987b145b59a386dfa6 (patch) | |
tree | 02b0dbfca838b8e4b7aa8d57671facbd20b4e8da /plugins/org.eclipse.etrice.ui.common | |
parent | 15b2e7aecc535bd7bd23107319d35e1ccfa6a179 (diff) | |
download | org.eclipse.etrice-64c507dbb1cc7b43226567987b145b59a386dfa6.tar.gz org.eclipse.etrice-64c507dbb1cc7b43226567987b145b59a386dfa6.tar.xz org.eclipse.etrice-64c507dbb1cc7b43226567987b145b59a386dfa6.zip |
[ui.behavior, ui.common] fixes for the cases of unresolved objects
appearing as EObject proxies when they have been removed from the textual model
Diffstat (limited to 'plugins/org.eclipse.etrice.ui.common')
-rw-r--r-- | plugins/org.eclipse.etrice.ui.common/src/org/eclipse/etrice/ui/common/support/AutoUpdateFeature.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/org.eclipse.etrice.ui.common/src/org/eclipse/etrice/ui/common/support/AutoUpdateFeature.java b/plugins/org.eclipse.etrice.ui.common/src/org/eclipse/etrice/ui/common/support/AutoUpdateFeature.java index 9a0f59349..9d20fdb4b 100644 --- a/plugins/org.eclipse.etrice.ui.common/src/org/eclipse/etrice/ui/common/support/AutoUpdateFeature.java +++ b/plugins/org.eclipse.etrice.ui.common/src/org/eclipse/etrice/ui/common/support/AutoUpdateFeature.java @@ -52,7 +52,7 @@ public class AutoUpdateFeature extends AbstractUpdateFeature { for (Connection conn : new ArrayList<Connection>(diagram.getConnections())) {
UpdateContext context = new UpdateContext(conn);
IUpdateFeature updateFeature = getFeatureProvider().getUpdateFeature(context);
- if (updateFeature.canUpdate(context))
+ if (updateFeature!=null && updateFeature.canUpdate(context))
if (updateFeature.updateNeeded(context).toBoolean())
needed = true;
}
|