aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaloyan Raev2014-02-03 05:37:23 (EST)
committerKaloyan Raev2014-02-03 05:38:28 (EST)
commit18960b0617374ae7abbf957c228487fb9f956a12 (patch)
treef5ae6fd2d3e78e8cd25540895a7850150523ea59
parentd6b90698f14caed79772fa06b1f5e5bdf8e3c942 (diff)
downloadorg.eclipse.pdt-18960b0617374ae7abbf957c228487fb9f956a12.zip
org.eclipse.pdt-18960b0617374ae7abbf957c228487fb9f956a12.tar.gz
org.eclipse.pdt-18960b0617374ae7abbf957c228487fb9f956a12.tar.bz2
Bug 427243 - NPE in AutoDetectLibraryFolderJob.getFoldersFromNames()refs/changes/55/21455/1
Simple null check avoids the problem. Bug: 427243 Change-Id: Ibc46d243ba62f3c14c95c58a4a9ad59f31edebb7 Signed-off-by: Kaloyan Raev <kaloyan.r@zend.com>
-rw-r--r--plugins/org.eclipse.php.core/src/org/eclipse/php/internal/core/libfolders/AutoDetectLibraryFolderJob.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/org.eclipse.php.core/src/org/eclipse/php/internal/core/libfolders/AutoDetectLibraryFolderJob.java b/plugins/org.eclipse.php.core/src/org/eclipse/php/internal/core/libfolders/AutoDetectLibraryFolderJob.java
index 72a9089..6e9dc27 100644
--- a/plugins/org.eclipse.php.core/src/org/eclipse/php/internal/core/libfolders/AutoDetectLibraryFolderJob.java
+++ b/plugins/org.eclipse.php.core/src/org/eclipse/php/internal/core/libfolders/AutoDetectLibraryFolderJob.java
@@ -156,7 +156,7 @@ public class AutoDetectLibraryFolderJob extends WorkspaceJob {
for (String name : folderNames) {
IModelElement folder = DLTKCore.create(project.getFolder(name));
- if (folder.exists()) {
+ if (folder != null && folder.exists()) {
result.add(folder);
}
}