OSDN Git Service

Merge d4166974 from master. do not merge.
authorXavier Ducrohet <xav@android.com>
Fri, 20 May 2011 22:44:49 +0000 (15:44 -0700)
committerXavier Ducrohet <xav@android.com>
Fri, 20 May 2011 23:10:01 +0000 (16:10 -0700)
Fix issue with resource repository when using libraries

Change-Id: I45c8af34020f047f08a53ddd6ada3a8be4061a52

ide_common/src/com/android/ide/common/resources/ResourceRepository.java

index 41e4f89..f72ebd2 100644 (file)
@@ -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