aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOleg Besedin2012-04-03 16:28:45 (EDT)
committerOleg Besedin2012-04-03 16:39:46 (EDT)
commit9846f4a0e279ec0600421d2659401f6fc44dd171 (patch)
tree242d7c148cf8bbe6ec5c3d45cbb8364d452e239e
parent2ab7f63d9dfa46b6d72c6d7a1668c400bf5fc517 (diff)
downloadeclipse.platform.ui-9846f4a0e279ec0600421d2659401f6fc44dd171.zip
eclipse.platform.ui-9846f4a0e279ec0600421d2659401f6fc44dd171.tar.gz
eclipse.platform.ui-9846f4a0e279ec0600421d2659401f6fc44dd171.tar.bz2
Bug 204192 - [WorkbenchParts] NullPointerException inv20120403-2039
WorkbenchWindow.hardClose
-rw-r--r--examples/org.eclipse.e4.demo.contacts/src/org/eclipse/e4/demo/contacts/processors/MenuThemeProcessor.java2
-rw-r--r--examples/org.eclipse.e4.demo.contacts/src/org/eclipse/e4/demo/contacts/processors/ToolbarThemeProcessor.java2
2 files changed, 4 insertions, 0 deletions
diff --git a/examples/org.eclipse.e4.demo.contacts/src/org/eclipse/e4/demo/contacts/processors/MenuThemeProcessor.java b/examples/org.eclipse.e4.demo.contacts/src/org/eclipse/e4/demo/contacts/processors/MenuThemeProcessor.java
index 1e5e352..e973031 100644
--- a/examples/org.eclipse.e4.demo.contacts/src/org/eclipse/e4/demo/contacts/processors/MenuThemeProcessor.java
+++ b/examples/org.eclipse.e4.demo.contacts/src/org/eclipse/e4/demo/contacts/processors/MenuThemeProcessor.java
@@ -40,6 +40,8 @@ public class MenuThemeProcessor extends AbstractThemeProcessor {
@Execute
public void process() {
+ if (menu == null)
+ return;
MApplication theApp = getApplication();
List<String> tags = theApp.getTags();
diff --git a/examples/org.eclipse.e4.demo.contacts/src/org/eclipse/e4/demo/contacts/processors/ToolbarThemeProcessor.java b/examples/org.eclipse.e4.demo.contacts/src/org/eclipse/e4/demo/contacts/processors/ToolbarThemeProcessor.java
index 9b4f6a5..679a4c1 100644
--- a/examples/org.eclipse.e4.demo.contacts/src/org/eclipse/e4/demo/contacts/processors/ToolbarThemeProcessor.java
+++ b/examples/org.eclipse.e4.demo.contacts/src/org/eclipse/e4/demo/contacts/processors/ToolbarThemeProcessor.java
@@ -35,6 +35,8 @@ public class ToolbarThemeProcessor extends AbstractThemeProcessor {
@Execute
public void process() {
+ if (toolbar == null)
+ return;
MApplication theApp = getApplication();
List<String> tags = theApp.getTags();