summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndroid (Google) Code Review <android-gerrit@google.com>2009-06-16 16:43:01 -0700
committerThe Android Open Source Project <initial-contribution@android.com>2009-06-16 16:43:01 -0700
commitdfd0363adac842340650d0c535e1da201815c32b (patch)
tree07a12df5b72568e39c70c55320efb636d6362285
parenta238b4687639283c2289c5fcf0ebdadc94f7ff75 (diff)
parent5633034f79bfa67c4219f16fd6d23e962e800be2 (diff)
downloadframeworks_base-dfd0363adac842340650d0c535e1da201815c32b.zip
frameworks_base-dfd0363adac842340650d0c535e1da201815c32b.tar.gz
frameworks_base-dfd0363adac842340650d0c535e1da201815c32b.tar.bz2
am 5633034f: Merge change 4115 into donut
Merge commit '5633034f79bfa67c4219f16fd6d23e962e800be2' * commit '5633034f79bfa67c4219f16fd6d23e962e800be2': * component can be null after destory?
-rw-r--r--core/java/android/app/ActivityThread.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/core/java/android/app/ActivityThread.java b/core/java/android/app/ActivityThread.java
index d08fc11..2fe6471 100644
--- a/core/java/android/app/ActivityThread.java
+++ b/core/java/android/app/ActivityThread.java
@@ -31,6 +31,7 @@ import android.content.pm.InstrumentationInfo;
import android.content.pm.PackageManager;
import android.content.pm.ProviderInfo;
import android.content.pm.ServiceInfo;
+import android.content.pm.PackageParser.Component;
import android.content.res.AssetManager;
import android.content.res.Configuration;
import android.content.res.Resources;
@@ -3286,10 +3287,10 @@ public final class ActivityThread {
throw e;
} catch (Exception e) {
if (!mInstrumentation.onException(r.activity, e)) {
+ ComponentName component = r.intent.getComponent();
+ String name = component == null ? "[Unknown]" : component.toShortString();
throw new RuntimeException(
- "Unable to destroy activity "
- + r.intent.getComponent().toShortString()
- + ": " + e.toString(), e);
+ "Unable to destroy activity " + name + ": " + e.toString(), e);
}
}
}