mirror of
https://github.com/revanced/ARSCLib.git
synced 2025-04-30 14:24:25 +02:00
fix encode null value as empty string for non bag entries
This commit is contained in:
parent
a09e487afd
commit
9384cbe483
@ -74,7 +74,7 @@ class XMLValuesEncoder {
|
||||
}
|
||||
}
|
||||
void encodeNullValue(Entry entry){
|
||||
// Nothing to do
|
||||
entry.setValueAsString("");
|
||||
}
|
||||
void encodeLiteralEmptyValue(Entry entry, String value){
|
||||
entry.setValueAsRaw(ValueType.NULL, 0);
|
||||
|
@ -44,4 +44,9 @@ class XMLValuesEncoderBag extends XMLValuesEncoder{
|
||||
int getChildesCount(XMLElement element){
|
||||
return element.getChildesCount();
|
||||
}
|
||||
|
||||
@Override
|
||||
void encodeNullValue(Entry entry){
|
||||
// Nothing to do
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user