diff options
author | Brett Chabot <> | 2009-04-01 15:15:33 -0700 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2009-04-01 15:15:33 -0700 |
commit | 79ad6262314281dff10f7c4ed90fec893a60e274 (patch) | |
tree | ccc3f1098cdff730bcd4fda2175bd2dd6366e46a /test-runner/android/test | |
parent | d7f347bdc878109df1f34c5015de2dc9f531d87b (diff) | |
download | frameworks_base-79ad6262314281dff10f7c4ed90fec893a60e274.zip frameworks_base-79ad6262314281dff10f7c4ed90fec893a60e274.tar.gz frameworks_base-79ad6262314281dff10f7c4ed90fec893a60e274.tar.bz2 |
AI 144098: am: CL 144093 Fix NPE in ActivityUnitTestCase.
Original author: brettchabot
Merged from: //branches/cupcake/...
Automated import of CL 144098
Diffstat (limited to 'test-runner/android/test')
-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; |