diff options
author | Tor Norbye <tnorbye@google.com> | 2012-11-20 16:57:39 -0800 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2012-11-20 16:57:39 -0800 |
commit | 9955ad3458416bbffb61eb03e7e60bea699bffd0 (patch) | |
tree | 94980b1b901a80a775f71168648c1e82c13abef9 /lint/libs | |
parent | 85e806b5554bf55e44a561e13f7e4a2f78395698 (diff) | |
parent | 48ced343c48a6f14d07da495bfe2465ac4ac5799 (diff) | |
download | sdk-9955ad3458416bbffb61eb03e7e60bea699bffd0.zip sdk-9955ad3458416bbffb61eb03e7e60bea699bffd0.tar.gz sdk-9955ad3458416bbffb61eb03e7e60bea699bffd0.tar.bz2 |
Merge "Lint fix for AOSP unbundled"
Diffstat (limited to 'lint/libs')
-rw-r--r-- | lint/libs/lint_api/src/com/android/tools/lint/detector/api/Project.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lint/libs/lint_api/src/com/android/tools/lint/detector/api/Project.java b/lint/libs/lint_api/src/com/android/tools/lint/detector/api/Project.java index eb04231..c29cdf3 100644 --- a/lint/libs/lint_api/src/com/android/tools/lint/detector/api/Project.java +++ b/lint/libs/lint_api/src/com/android/tools/lint/detector/api/Project.java @@ -865,6 +865,10 @@ public class Project { File apiDir = new File(getAospTop(), "frameworks/base/api" //$NON-NLS-1$ .replace('/', File.separatorChar)); File[] apiFiles = apiDir.listFiles(); + if (apiFiles == null) { + sCurrentVersion = 1; + return sCurrentVersion; + } int max = 1; for (File apiFile : apiFiles) { String name = apiFile.getName(); |