aboutsummaryrefslogtreecommitdiffstats
path: root/eclipse
diff options
context:
space:
mode:
authorTor Norbye <tnorbye@google.com>2011-01-30 20:54:58 -0800
committerTor Norbye <tnorbye@google.com>2011-01-30 20:54:58 -0800
commit855ca2ca2f30e72a8d82a4c2fb2750438fc15dd2 (patch)
tree2c9ae8fc7b5e6ec1e85d9fe5126d4372497a9820 /eclipse
parentf25f343327379b80cef75178fe94a80e2540d34d (diff)
downloadsdk-855ca2ca2f30e72a8d82a4c2fb2750438fc15dd2.zip
sdk-855ca2ca2f30e72a8d82a4c2fb2750438fc15dd2.tar.gz
sdk-855ca2ca2f30e72a8d82a4c2fb2750438fc15dd2.tar.bz2
Guard against possible NPE.
Change-Id: I4be9b1659aa1394bea0f24f34fb4681e781b96ae
Diffstat (limited to 'eclipse')
-rw-r--r--eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/GraphicalEditorPart.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/GraphicalEditorPart.java b/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/GraphicalEditorPart.java
index cb5c849..eda6514 100644
--- a/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/GraphicalEditorPart.java
+++ b/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/GraphicalEditorPart.java
@@ -1519,7 +1519,7 @@ public class GraphicalEditorPart extends EditorPart
canvas.setSession(session, explodeNodes);
// update the UiElementNode with the layout info.
- if (session.getResult().isSuccess() == false) {
+ if (session != null && session.getResult().isSuccess() == false) {
// An error was generated. Print it (and any other accumulated warnings)
String errorMessage = session.getResult().getErrorMessage();
Throwable exception = session.getResult().getException();