aboutsummaryrefslogtreecommitdiffstats
path: root/sdk_common
diff options
context:
space:
mode:
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