summaryrefslogtreecommitdiffstats
path: root/core/java/android
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2014-06-20 12:18:55 -0700
committerDianne Hackborn <hackbod@google.com>2014-06-20 12:18:55 -0700
commitb65ea7bfc6797d1aa8ef359f144eb2b8070dbf72 (patch)
treeaba2392c8636495409608235aa031ea2d6f1fe14 /core/java/android
parent53ad2a15d524d6eb3730cd122b3ece27358123ad (diff)
downloadframeworks_base-b65ea7bfc6797d1aa8ef359f144eb2b8070dbf72.zip
frameworks_base-b65ea7bfc6797d1aa8ef359f144eb2b8070dbf72.tar.gz
frameworks_base-b65ea7bfc6797d1aa8ef359f144eb2b8070dbf72.tar.bz2
Fix issue #15689396: pre-installed DemoAPI tests fail...
...with a NPE on emulators running Google x86 API 19 image Change-Id: Ib989127f48b0c02ec645b99827a9b775188684d8
Diffstat (limited to 'core/java/android')
-rw-r--r--core/java/android/app/Instrumentation.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/java/android/app/Instrumentation.java b/core/java/android/app/Instrumentation.java
index b78b9c9..c583998 100644
--- a/core/java/android/app/Instrumentation.java
+++ b/core/java/android/app/Instrumentation.java
@@ -188,6 +188,9 @@ public class Instrumentation {
endPerformanceSnapshot();
}
if (mPerfMetrics != null) {
+ if (results == null) {
+ results = new Bundle();
+ }
results.putAll(mPerfMetrics);
}
if (mUiAutomation != null) {