Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Schindl2014-05-13 16:51:45 -0400
committerTom Schindl2014-05-13 16:51:45 -0400
commitae2edf3e9c1e7b5629cc42042c086eb6072c94b1 (patch)
tree30f8d0a6ce4776a12799b0d2da92be8523f5aac5
parentb53ec7c87c0173194973b2f362e6c262764bf4eb (diff)
downloadorg.eclipse.efxclipse-ae2edf3e9c1e7b5629cc42042c086eb6072c94b1.tar.gz
org.eclipse.efxclipse-ae2edf3e9c1e7b5629cc42042c086eb6072c94b1.tar.xz
org.eclipse.efxclipse-ae2edf3e9c1e7b5629cc42042c086eb6072c94b1.zip
Bug 434803 - Upgrade to jdt.annotation 2.0
-rwxr-xr-xbundles/runtime/org.eclipse.fx.ui.workbench.renderers.fx/src/org/eclipse/fx/ui/workbench/renderers/fx/DefAreaRenderer.java11
1 files changed, 9 insertions, 2 deletions
diff --git a/bundles/runtime/org.eclipse.fx.ui.workbench.renderers.fx/src/org/eclipse/fx/ui/workbench/renderers/fx/DefAreaRenderer.java b/bundles/runtime/org.eclipse.fx.ui.workbench.renderers.fx/src/org/eclipse/fx/ui/workbench/renderers/fx/DefAreaRenderer.java
index 23197994f..082bbc546 100755
--- a/bundles/runtime/org.eclipse.fx.ui.workbench.renderers.fx/src/org/eclipse/fx/ui/workbench/renderers/fx/DefAreaRenderer.java
+++ b/bundles/runtime/org.eclipse.fx.ui.workbench.renderers.fx/src/org/eclipse/fx/ui/workbench/renderers/fx/DefAreaRenderer.java
@@ -64,10 +64,17 @@ public class DefAreaRenderer extends BaseAreaRenderer<SplitPane> {
double prev = 0;
int idx = 0;
for (double d : getWidget().getDividerPositions()) {
- this.items.get(idx++).getDomElement().setContainerData((d - prev) * 10 + ""); //$NON-NLS-1$
+ MPartSashContainerElement element = this.items.get(idx++).getDomElement();
+ if( element != null ) {
+ element.setContainerData((d - prev) * 10 + ""); //$NON-NLS-1$
+ }
+
prev = d;
}
- this.items.get(this.items.size() - 1).getDomElement().setContainerData((1.0 - prev) * 10 + ""); //$NON-NLS-1$
+ MPartSashContainerElement element = this.items.get(this.items.size() - 1).getDomElement();
+ if( element != null ) {
+ element.setContainerData((1.0 - prev) * 10 + ""); //$NON-NLS-1$
+ }
}
@Override

Back to the top