mirror of
https://github.com/whyorean/AuroraStore.git
synced 2026-06-20 13:39:36 -04:00
Fixed a rare NPE
This commit is contained in:
@@ -52,8 +52,10 @@ public class SpoofDeviceManager {
|
||||
} else {
|
||||
Log.i(getClass().getName(), "Loading device info from " + getApkPath() + "/" + entryName);
|
||||
JarFile jarFile = getApkAsJar();
|
||||
if (null == jarFile) {
|
||||
return new Properties();
|
||||
if (null == jarFile || null == jarFile.getEntry(entryName)) {
|
||||
Properties empty = new Properties();
|
||||
empty.setProperty("Could not read ", entryName);
|
||||
return empty;
|
||||
}
|
||||
return getProperties(jarFile, (JarEntry) jarFile.getEntry(entryName));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user