Fix a possible NPE.

This NPE's at least in unit tests.

Change-Id: I255ac5fec9502e4e5bd18cba1211cdf46c6cafc8
This commit is contained in:
Jean Chalard 2012-05-31 19:33:39 +09:00
parent 38a24ba82d
commit 6f0cd9ba6d

View file

@ -29,6 +29,7 @@ public class TargetApplicationGetter extends AsyncTask<String, Void, Application
new LruCache<String, ApplicationInfo>(MAX_CACHE_ENTRIES);
public static ApplicationInfo getCachedApplicationInfo(final String packageName) {
if (null == packageName) return null;
return sCache.get(packageName);
}
public static void removeApplicationInfoCache(final String packageName) {