Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvrubezhny2014-02-18 19:42:45 -0500
committervrubezhny2014-02-18 19:51:25 -0500
commit195d9b2e47ff252337418e91d5e56151b5342d99 (patch)
tree34ad05982189ef1db842e82f1271b4388a61965e /org.eclipse.core.externaltools
parent180468132428e198c17077e4c6244e77a931c874 (diff)
downloadeclipse.platform.debug-195d9b2e47ff252337418e91d5e56151b5342d99.tar.gz
eclipse.platform.debug-195d9b2e47ff252337418e91d5e56151b5342d99.tar.xz
eclipse.platform.debug-195d9b2e47ff252337418e91d5e56151b5342d99.zip
Bug 428479 - NullPointerException in Project's Project Preferences pageI20140226-1700I20140226-1200I20140225-1430I20140225-0800
An additional check for null is added to BuilderCoreUtils.getBuilderFolder(IProject, boolean) method for the project parameter because it may have a null-value. Bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=428479 Signed-off-by: vrubezhny <vrubezhny@exadel.com>
Diffstat (limited to 'org.eclipse.core.externaltools')
-rw-r--r--org.eclipse.core.externaltools/src/org/eclipse/core/externaltools/internal/model/BuilderCoreUtils.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/org.eclipse.core.externaltools/src/org/eclipse/core/externaltools/internal/model/BuilderCoreUtils.java b/org.eclipse.core.externaltools/src/org/eclipse/core/externaltools/internal/model/BuilderCoreUtils.java
index 28f8070cc..fdb756f60 100644
--- a/org.eclipse.core.externaltools/src/org/eclipse/core/externaltools/internal/model/BuilderCoreUtils.java
+++ b/org.eclipse.core.externaltools/src/org/eclipse/core/externaltools/internal/model/BuilderCoreUtils.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2013 IBM Corporation and others.
+ * Copyright (c) 2000, 2014 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -230,6 +230,10 @@ public class BuilderCoreUtils {
* <code>null</code> if the folder could not be created
*/
public static IFolder getBuilderFolder(IProject project, boolean create) {
+ if (project == null) { // Bug #428479
+ return null;
+ }
+
IFolder folder = project.getFolder(BUILDER_FOLDER_NAME);
if (!folder.exists() && create) {
try {

Back to the top