aboutsummaryrefslogtreecommitdiffstats
path: root/eclipse/plugins
diff options
context:
space:
mode:
authorXavier Ducrohet <xav@android.com>2012-10-24 15:35:47 -0700
committerGerrit Code Review <noreply-gerritcodereview@google.com>2012-10-24 15:35:48 -0700
commit910a55cea9a2b7317d775d735bcfcf2f30fcf63e (patch)
tree876c2793ffd53275b16aa28f62313a5f50e69393 /eclipse/plugins
parent650d08173e6401b382a832692f6e18517c73e540 (diff)
parentca699a738a30beb12fb384b07fd69f8d12649e5b (diff)
downloadsdk-910a55cea9a2b7317d775d735bcfcf2f30fcf63e.zip
sdk-910a55cea9a2b7317d775d735bcfcf2f30fcf63e.tar.gz
sdk-910a55cea9a2b7317d775d735bcfcf2f30fcf63e.tar.bz2
Merge "Guard against a possible NPE."
Diffstat (limited to 'eclipse/plugins')
-rw-r--r--eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/project/LibraryClasspathContainerInitializer.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/project/LibraryClasspathContainerInitializer.java b/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/project/LibraryClasspathContainerInitializer.java
index aa0e736..5b0d185 100644
--- a/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/project/LibraryClasspathContainerInitializer.java
+++ b/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/project/LibraryClasspathContainerInitializer.java
@@ -384,7 +384,10 @@ public class LibraryClasspathContainerInitializer extends BaseClasspathContainer
for (IResource member : members) {
if (member.getType() == IResource.FILE &&
SdkConstants.EXT_JAR.equalsIgnoreCase(member.getFileExtension())) {
- jarFiles.add(member.getLocation().toFile());
+ IPath location = member.getLocation();
+ if (location != null) {
+ jarFiles.add(location.toFile());
+ }
}
}
} catch (CoreException e) {