mirror of
https://github.com/revanced/Apktool.git
synced 2025-01-21 01:07: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);
|
mPkg.addResSpec(spec);
|
||||||
mType.addResSpec(spec);
|
mType.addResSpec(spec);
|
||||||
|
|
||||||
|
if (mConfig == null) {
|
||||||
|
mConfig = mPkg.getOrCreateConfig(new ResConfigFlags());
|
||||||
|
}
|
||||||
|
|
||||||
ResValue value = new ResBoolValue(false, null);
|
ResValue value = new ResBoolValue(false, null);
|
||||||
ResResource res = new ResResource(
|
ResResource res = new ResResource(mConfig, spec, value);
|
||||||
mPkg.getOrCreateConfig(new ResConfigFlags()), spec, value);
|
|
||||||
mPkg.addResource(res);
|
mPkg.addResource(res);
|
||||||
mConfig.addResource(res);
|
mConfig.addResource(res);
|
||||||
spec.addResource(res);
|
spec.addResource(res);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user