aboutsummaryrefslogtreecommitdiffstats
path: root/sdk_common
diff options
context:
space:
mode:
authorTor Norbye <tnorbye@google.com>2012-11-22 10:43:27 -0800
committerTor Norbye <tnorbye@google.com>2012-11-22 10:43:27 -0800
commitbb8ca8bce6e7e04f6726a59d83bc871b311d57f0 (patch)
tree848cb528f7eda40c46232eed81fe56fbb0f3c15e /sdk_common
parentfd3fb3d73dec09585c52a310019095877c2b2167 (diff)
downloadsdk-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.java3
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