Fix a error in stream reader

This commit is contained in:
Aria 2023-06-14 03:16:22 -07:00
parent 5d51c2e478
commit 318c470f3b

View file

@ -83,6 +83,8 @@ public class XmlRpcStreamReader {
private Object deserializeValue ( ) throws XMLStreamException {
nextTag ( );
require( XMLStreamConstants.START_ELEMENT, null, "value");
nextTag (); // Something to be deserialized!
int eventType = xmlStreamReader.getEventType ( );
if ( eventType == XMLStreamConstants.CHARACTERS || eventType == XMLStreamConstants.CDATA ) {
return xmlStreamReader.getText ( );