aboutsummaryrefslogtreecommitdiffstats
path: root/eclipse
diff options
context:
space:
mode:
authorRaphaƫl Moll <ralf@android.com>2012-04-20 11:00:39 -0700
committerandroid code review <noreply-gerritcodereview@google.com>2012-04-20 11:00:40 -0700
commit622512420652f1622a8d0ca9b64845e2a0288aa9 (patch)
treee77b214c93cef00b4daf0622208eb38a12d0bba2 /eclipse
parent7a8bb60dd336612fe4ec32648ff4e3773c21a150 (diff)
parentd61484cb62e1d681bd515376ffb0a7fd86de1d3b (diff)
downloadsdk-622512420652f1622a8d0ca9b64845e2a0288aa9.zip
sdk-622512420652f1622a8d0ca9b64845e2a0288aa9.tar.gz
sdk-622512420652f1622a8d0ca9b64845e2a0288aa9.tar.bz2
Merge "Fix NPE"
Diffstat (limited to 'eclipse')
-rw-r--r--eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/AndroidContentAssist.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/AndroidContentAssist.java b/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/AndroidContentAssist.java
index 7c4cba8..b7c95b5 100644
--- a/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/AndroidContentAssist.java
+++ b/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/AndroidContentAssist.java
@@ -462,7 +462,9 @@ public abstract class AndroidContentAssist implements IContentAssistProcessor {
choices = currentUiNode.getAttributeDescriptors();
} else {
ElementDescriptor parentDesc = getDescriptor(parent);
- choices = parentDesc.getAttributes();
+ if (parentDesc != null) {
+ choices = parentDesc.getAttributes();
+ }
}
}
return choices;