diff options
author | Tor Norbye <tnorbye@google.com> | 2012-11-22 10:43:27 -0800 |
---|---|---|
committer | Tor Norbye <tnorbye@google.com> | 2012-11-22 10:43:27 -0800 |
commit | bb8ca8bce6e7e04f6726a59d83bc871b311d57f0 (patch) | |
tree | 848cb528f7eda40c46232eed81fe56fbb0f3c15e /sdk_common | |
parent | fd3fb3d73dec09585c52a310019095877c2b2167 (diff) | |
download | sdk-bb8ca8bce6e7e04f6726a59d83bc871b311d57f0.zip sdk-bb8ca8bce6e7e04f6726a59d83bc871b311d57f0.tar.gz sdk-bb8ca8bce6e7e04f6726a59d83bc871b311d57f0.tar.bz2 |
40222: Cannot render strings starting with "\@"
Change-Id: I47d41ea2436a13a83e666471397c631a893dda02
Diffstat (limited to 'sdk_common')
-rw-r--r-- | sdk_common/src/com/android/ide/common/resources/ResourceResolver.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sdk_common/src/com/android/ide/common/resources/ResourceResolver.java b/sdk_common/src/com/android/ide/common/resources/ResourceResolver.java index d742c4a..756ea53 100644 --- a/sdk_common/src/com/android/ide/common/resources/ResourceResolver.java +++ b/sdk_common/src/com/android/ide/common/resources/ResourceResolver.java @@ -263,6 +263,9 @@ public class ResourceResolver extends RenderResources { // at this point, value contains type/[android:]name (drawable/foo for instance) String[] segments = reference.split("\\/"); + if (segments.length <= 1) { + return null; + } // now we look for android: in the resource name in order to support format // such as: @drawable/android:name |