mirror of
https://github.com/revanced/Apktool.git
synced 2025-01-20 16:57:34 +01:00
Merge pull request #71 from rchiossi/master
Fix for Null Reference while extracting Resources.
This commit is contained in:
commit
e6cf72f1d2
@ -319,9 +319,13 @@ public class ARSCDecoder {
|
||||
mPkg.addResSpec(spec);
|
||||
mType.addResSpec(spec);
|
||||
|
||||
if (mConfig == null) {
|
||||
mConfig = mPkg.getOrCreateConfig(new ResConfigFlags());
|
||||
}
|
||||
|
||||
ResValue value = new ResBoolValue(false, null);
|
||||
ResResource res = new ResResource(
|
||||
mPkg.getOrCreateConfig(new ResConfigFlags()), spec, value);
|
||||
ResResource res = new ResResource(mConfig, spec, value);
|
||||
|
||||
mPkg.addResource(res);
|
||||
mConfig.addResource(res);
|
||||
spec.addResource(res);
|
||||
|
Loading…
x
Reference in New Issue
Block a user