mirror of
https://github.com/revanced/Apktool.git
synced 2024-12-25 04:05:54 +01:00
show message about null references
This commit is contained in:
parent
b60db0917d
commit
c3fc2fe260
@ -23,6 +23,7 @@ import brut.androlib.res.xml.ResValuesXmlSerializable;
|
|||||||
import brut.util.Duo;
|
import brut.util.Duo;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import org.xmlpull.v1.XmlSerializer;
|
import org.xmlpull.v1.XmlSerializer;
|
||||||
|
import java.util.logging.Logger;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Ryszard Wiśniewski <brut.alll@gmail.com>
|
* @author Ryszard Wiśniewski <brut.alll@gmail.com>
|
||||||
@ -54,6 +55,8 @@ public class ResStyleValue extends ResBagValue implements
|
|||||||
ResResSpec spec = mItems[i].m1.getReferent();
|
ResResSpec spec = mItems[i].m1.getReferent();
|
||||||
|
|
||||||
if (spec == null) {
|
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;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -90,4 +93,6 @@ public class ResStyleValue extends ResBagValue implements
|
|||||||
}
|
}
|
||||||
|
|
||||||
private final Duo<ResReferenceValue, ResScalarValue>[] mItems;
|
private final Duo<ResReferenceValue, ResScalarValue>[] mItems;
|
||||||
|
|
||||||
|
private static final Logger LOGGER = Logger.getLogger(ResStyleValue.class.getName());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user