mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-06 15:18:49 +00:00
XmlPullUtil: fix virtual end tag of empty element isn't consumed in optValueTag()
This commit is contained in:
parent
0013bdff08
commit
0e1c04f88d
1 changed files with 3 additions and 0 deletions
|
@ -204,6 +204,9 @@ public final class XmlPullUtil {
|
|||
return defaultValue;
|
||||
if (pp.isEmptyElementTag()) {
|
||||
pp.next();
|
||||
if (pp.getEventType() != XmlPullParser.END_TAG)
|
||||
throw new IllegalStateException("expected (virtual) end tag on empty element");
|
||||
pp.next();
|
||||
return defaultValue;
|
||||
}
|
||||
final String value = valueTag(pp, tagName);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue