diff options
author | Tor Norbye <tnorbye@google.com> | 2012-03-29 15:15:02 -0600 |
---|---|---|
committer | Tor Norbye <tnorbye@google.com> | 2012-04-02 08:41:57 -0700 |
commit | 798197f96f45cd7316a8e895e782da9f84dad560 (patch) | |
tree | 68b6da9da6418e5d63f2a3764fe7d168f949b327 /lint/libs | |
parent | ff2c433c175d70a1ab96bc10274c5a869f3ac638 (diff) | |
download | sdk-798197f96f45cd7316a8e895e782da9f84dad560.zip sdk-798197f96f45cd7316a8e895e782da9f84dad560.tar.gz sdk-798197f96f45cd7316a8e895e782da9f84dad560.tar.bz2 |
Fix 27966: Android lint null pointer crash
Change-Id: I3ea0ce70ab0a3a191acd3f181878bb8ceb1538fe
Diffstat (limited to 'lint/libs')
-rw-r--r-- | lint/libs/lint_checks/src/com/android/tools/lint/checks/JavaPerformanceDetector.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lint/libs/lint_checks/src/com/android/tools/lint/checks/JavaPerformanceDetector.java b/lint/libs/lint_checks/src/com/android/tools/lint/checks/JavaPerformanceDetector.java index 2c125b5..b44b854 100644 --- a/lint/libs/lint_checks/src/com/android/tools/lint/checks/JavaPerformanceDetector.java +++ b/lint/libs/lint_checks/src/com/android/tools/lint/checks/JavaPerformanceDetector.java @@ -243,7 +243,7 @@ public class JavaPerformanceDetector extends Detector implements Detector.JavaSc @Override public boolean visitMethodInvocation(MethodInvocation node) { - if (mFlagAllocations) { + if (mFlagAllocations && node.astOperand() != null) { // Look for forbidden methods String methodName = node.astName().astValue(); if (methodName.equals("createBitmap") //$NON-NLS-1$ |