diff options
author | Tor Norbye <tnorbye@google.com> | 2012-11-07 12:39:33 -0800 |
---|---|---|
committer | Tor Norbye <tnorbye@google.com> | 2012-11-20 16:35:54 -0800 |
commit | 48ced343c48a6f14d07da495bfe2465ac4ac5799 (patch) | |
tree | bd3f83789270531720647e60eb91bf4314358725 /lint/libs | |
parent | fd3fb3d73dec09585c52a310019095877c2b2167 (diff) | |
download | sdk-48ced343c48a6f14d07da495bfe2465ac4ac5799.zip sdk-48ced343c48a6f14d07da495bfe2465ac4ac5799.tar.gz sdk-48ced343c48a6f14d07da495bfe2465ac4ac5799.tar.bz2 |
Lint fix for AOSP unbundled
Change-Id: I306b753319d235b015f44c0927382578805898de
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(); |