aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ide_common/src/com/android/ide/common/resources/ResourceRepository.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/ide_common/src/com/android/ide/common/resources/ResourceRepository.java b/ide_common/src/com/android/ide/common/resources/ResourceRepository.java
index 41e4f89..f72ebd2 100644
--- a/ide_common/src/com/android/ide/common/resources/ResourceRepository.java
+++ b/ide_common/src/com/android/ide/common/resources/ResourceRepository.java
@@ -482,10 +482,11 @@ public abstract class ResourceRepository {
*/
private Map<String, ResourceValue> getConfiguredResource(ResourceType type,
FolderConfiguration referenceConfig) {
+
// get the resource item for the given type
List<ResourceItem> items = mResourceMap.get(type);
if (items == null) {
- return Collections.emptyMap();
+ return new HashMap<String, ResourceValue>();
}
// create the map