aboutsummaryrefslogtreecommitdiffstats
path: root/lint/libs/lint_api
diff options
context:
space:
mode:
authorTor Norbye <tnorbye@google.com>2012-07-03 20:41:43 -0700
committerTor Norbye <tnorbye@google.com>2012-07-03 20:41:43 -0700
commitea7dd912dc8f5b8f3ae8545166657beacb429552 (patch)
treeae13c87220579fea54b838b2bc0ec9042da0345f /lint/libs/lint_api
parent0d8f973905a4925e00eb9e32887c192b2148b29f (diff)
downloadsdk-ea7dd912dc8f5b8f3ae8545166657beacb429552.zip
sdk-ea7dd912dc8f5b8f3ae8545166657beacb429552.tar.gz
sdk-ea7dd912dc8f5b8f3ae8545166657beacb429552.tar.bz2
Prevent exceptions for invalid project definitions
Change-Id: Ie2b5929a87144c77f1ce0d43b2520cc498df5081
Diffstat (limited to 'lint/libs/lint_api')
-rw-r--r--lint/libs/lint_api/src/com/android/tools/lint/client/api/LintDriver.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/lint/libs/lint_api/src/com/android/tools/lint/client/api/LintDriver.java b/lint/libs/lint_api/src/com/android/tools/lint/client/api/LintDriver.java
index 288a976..3e4e922 100644
--- a/lint/libs/lint_api/src/com/android/tools/lint/client/api/LintDriver.java
+++ b/lint/libs/lint_api/src/com/android/tools/lint/client/api/LintDriver.java
@@ -1137,6 +1137,9 @@ public class LintDriver {
for (File classPathEntry : classPath) {
if (classPathEntry.getName().endsWith(DOT_JAR)) {
File jarFile = classPathEntry;
+ if (!jarFile.exists()) {
+ continue;
+ }
ZipInputStream zis = null;
try {
FileInputStream fis = new FileInputStream(jarFile);