mirror of
https://github.com/revanced/Apktool.git
synced 2025-01-06 10:05:54 +01:00
Merge pull request #1413 from peter23/master
show message about null references
This commit is contained in:
commit
e3c6db33df
@ -23,6 +23,7 @@ import brut.androlib.res.xml.ResValuesXmlSerializable;
|
||||
import brut.util.Duo;
|
||||
import java.io.IOException;
|
||||
import org.xmlpull.v1.XmlSerializer;
|
||||
import java.util.logging.Logger;
|
||||
|
||||
/**
|
||||
* @author Ryszard Wiśniewski <brut.alll@gmail.com>
|
||||
@ -54,6 +55,8 @@ public class ResStyleValue extends ResBagValue implements
|
||||
ResResSpec spec = mItems[i].m1.getReferent();
|
||||
|
||||
if (spec == null) {
|
||||
LOGGER.info(String.format("null reference: m1=0x%08x(%s), m2=0x%08x(%s)",
|
||||
mItems[i].m1.getRawIntValue(), mItems[i].m1.getType(), mItems[i].m2.getRawIntValue(), mItems[i].m2.getType()));
|
||||
continue;
|
||||
}
|
||||
|
||||
@ -90,4 +93,6 @@ public class ResStyleValue extends ResBagValue implements
|
||||
}
|
||||
|
||||
private final Duo<ResReferenceValue, ResScalarValue>[] mItems;
|
||||
|
||||
private static final Logger LOGGER = Logger.getLogger(ResStyleValue.class.getName());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user