Skip to content

Commit

Permalink
Fix possible IndexOutOfBoundsException
Browse files Browse the repository at this point in the history
Signed-off-by: Arthur Chan <arthur.chan@adalogics.com>
  • Loading branch information
arthurscchan committed Dec 4, 2023
1 parent 9b9eaf5 commit 724747a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ private final String _collectUntilTag() throws XMLStreamException
}

CharSequence chars = null;
while (true) {
while (_xmlReader.hasNext()) {
switch (_xmlReader.next()) {
case XMLStreamConstants.START_ELEMENT:
return (chars == null) ? "" : chars.toString();
Expand Down

0 comments on commit 724747a

Please sign in to comment.