diff options
author | Brett Chabot <> | 2009-04-01 15:12:07 -0700 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2009-04-01 15:12:07 -0700 |
commit | 9a89f145d38a2461fcce6f5223f94f20d05ebd2b (patch) | |
tree | ea5ff1da190064026836cbd29ffd4fca36cab496 /test-runner | |
parent | 1177ece66ba67c817c13243e0d05319ebc914bab (diff) | |
download | frameworks_base-9a89f145d38a2461fcce6f5223f94f20d05ebd2b.zip frameworks_base-9a89f145d38a2461fcce6f5223f94f20d05ebd2b.tar.gz frameworks_base-9a89f145d38a2461fcce6f5223f94f20d05ebd2b.tar.bz2 |
AI 144093: Fix NPE in ActivityUnitTestCase.
BUG=1751731
Automated import of CL 144093
Diffstat (limited to 'test-runner')
-rw-r--r-- | test-runner/android/test/ActivityUnitTestCase.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test-runner/android/test/ActivityUnitTestCase.java b/test-runner/android/test/ActivityUnitTestCase.java index dfd8fc2..6bd19a6 100644 --- a/test-runner/android/test/ActivityUnitTestCase.java +++ b/test-runner/android/test/ActivityUnitTestCase.java @@ -136,7 +136,7 @@ public abstract class ActivityUnitTestCase<T extends Activity> ComponentName cn = new ComponentName(mActivityClass.getPackage().getName(), mActivityClass.getName()); intent.setComponent(cn); - ActivityInfo info = null; + ActivityInfo info = new ActivityInfo(); CharSequence title = mActivityClass.getName(); mMockParent = new MockParent(); String id = null; |