am 6f0cd9ba
: Fix a possible NPE.
* commit '6f0cd9ba6df3f254d4f5bfc5ac11e354e858b713': Fix a possible NPE.
This commit is contained in:
commit
bb10467863
1 changed files with 1 additions and 0 deletions
|
@ -29,6 +29,7 @@ public class TargetApplicationGetter extends AsyncTask<String, Void, Application
|
||||||
new LruCache<String, ApplicationInfo>(MAX_CACHE_ENTRIES);
|
new LruCache<String, ApplicationInfo>(MAX_CACHE_ENTRIES);
|
||||||
|
|
||||||
public static ApplicationInfo getCachedApplicationInfo(final String packageName) {
|
public static ApplicationInfo getCachedApplicationInfo(final String packageName) {
|
||||||
|
if (null == packageName) return null;
|
||||||
return sCache.get(packageName);
|
return sCache.get(packageName);
|
||||||
}
|
}
|
||||||
public static void removeApplicationInfoCache(final String packageName) {
|
public static void removeApplicationInfoCache(final String packageName) {
|
||||||
|
|
Loading…
Reference in a new issue