diff options
author | Xavier Ducrohet <xav@android.com> | 2011-05-20 15:44:49 -0700 |
---|---|---|
committer | Xavier Ducrohet <xav@android.com> | 2011-05-20 15:44:49 -0700 |
commit | d416697426259d33b0b049a64b3e05ec862c9638 (patch) | |
tree | bf9508561a04d9c0bc426027b895cc983a281c92 | |
parent | 27fda5abce4c9b9567f2c34d59b03992b115e43f (diff) | |
download | sdk-d416697426259d33b0b049a64b3e05ec862c9638.zip sdk-d416697426259d33b0b049a64b3e05ec862c9638.tar.gz sdk-d416697426259d33b0b049a64b3e05ec862c9638.tar.bz2 |
Fix issue with resource repository when using libraries
Change-Id: I1a3e5ba9ac6e930d4be2daedff9691862f975408
-rw-r--r-- | ide_common/src/com/android/ide/common/resources/ResourceRepository.java | 3 |
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 |