Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(455)

Unified Diff: plugins/org.chromium.debug.core/src/org/chromium/debug/core/model/ConnectedTargetData.java

Issue 11881024: Fix NPE (Closed) Base URL: https://chromedevtools.googlecode.com/svn/trunk
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: plugins/org.chromium.debug.core/src/org/chromium/debug/core/model/ConnectedTargetData.java
diff --git a/plugins/org.chromium.debug.core/src/org/chromium/debug/core/model/ConnectedTargetData.java b/plugins/org.chromium.debug.core/src/org/chromium/debug/core/model/ConnectedTargetData.java
index f23d83306ce8a0d1748f66aad607acb8eec31074..6d6fea467110a9e104c40e4062afd1fed4f31bf3 100644
--- a/plugins/org.chromium.debug.core/src/org/chromium/debug/core/model/ConnectedTargetData.java
+++ b/plugins/org.chromium.debug.core/src/org/chromium/debug/core/model/ConnectedTargetData.java
@@ -385,7 +385,11 @@ public class ConnectedTargetData {
@Override
EvaluateContext getEvaluateContext() {
- return getThread().getEvaluateContext();
+ JavascriptThread thread = getThread();
+ if (thread == null) {
+ return null;
+ }
+ return thread.getEvaluateContext();
}
@Override
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698