diff options
author | Tor Norbye <tnorbye@google.com> | 2012-09-21 16:31:45 -0700 |
---|---|---|
committer | Tor Norbye <tnorbye@google.com> | 2012-09-21 16:31:45 -0700 |
commit | 09bc0beba425c628051a87a4c8bc5070a1240277 (patch) | |
tree | 3c5927f9f5d2bf6bd7c28a483528fd08d801227e | |
parent | d2cd79f968e942d4494ae551f181e3b63b18d6fc (diff) | |
download | sdk-09bc0beba425c628051a87a4c8bc5070a1240277.zip sdk-09bc0beba425c628051a87a4c8bc5070a1240277.tar.gz sdk-09bc0beba425c628051a87a4c8bc5070a1240277.tar.bz2 |
Prevent potential NPE
Change-Id: I4fa69bac844ebb0561382c8639b571b425306fd3
-rw-r--r-- | eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/ContextPullParser.java | 2 |
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/ContextPullParser.java b/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/ContextPullParser.java index c30574b..90ea2a5 100644 --- a/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/ContextPullParser.java +++ b/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/ContextPullParser.java @@ -120,7 +120,7 @@ public class ContextPullParser extends KXmlParser implements ILayoutPullParser { } // Handle unicode escapes - if (value.indexOf('\\') != -1) { + if (value != null && value.indexOf('\\') != -1) { value = AdtUtils.replaceUnicodeEscapes(value); } |