Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Loskutov2016-08-04 12:40:33 +0000
committerAndrey Loskutov2016-08-08 16:58:08 +0000
commit1b93472b81701d38ca2ddd374272f7d928c28eb8 (patch)
treed63a108aa9d510cef945d10f82d834d391b23493
parentf9d16aa400693529e34bfa73f06cf0a666d29dd1 (diff)
downloadeclipse.platform.ui-1b93472b81701d38ca2ddd374272f7d928c28eb8.tar.gz
eclipse.platform.ui-1b93472b81701d38ca2ddd374272f7d928c28eb8.tar.xz
eclipse.platform.ui-1b93472b81701d38ca2ddd374272f7d928c28eb8.zip
Bug 499149 - NPE in SaveAllHandler.evaluate
Change-Id: I3d961ceabc9b10235a459cceb6ca0f6a566b0a53 Signed-off-by: Andrey Loskutov <loskutov@gmx.de>
-rw-r--r--bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/handlers/SaveAllHandler.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/handlers/SaveAllHandler.java b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/handlers/SaveAllHandler.java
index b2302bc2721..17040501dc0 100644
--- a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/handlers/SaveAllHandler.java
+++ b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/handlers/SaveAllHandler.java
@@ -72,6 +72,9 @@ public class SaveAllHandler extends AbstractSaveHandler {
// look if any such saveables exist and are dirty.
SaveablesList saveablesList = (SaveablesList) window.getWorkbench().getService(
ISaveablesLifecycleListener.class);
+ if (saveablesList == null) {
+ return EvaluationResult.FALSE;
+ }
ISaveablesSource[] nonPartSources = saveablesList.getNonPartSources();
for (int i = 0; i < nonPartSources.length; i++) {
Saveable[] saveables = nonPartSources[i].getSaveables();

Back to the top