Fixes a error

This commit is contained in:
Aria 2023-06-14 03:47:59 -07:00
parent 70aee2d733
commit 9978dd6a3f

View file

@ -182,7 +182,7 @@ public class XmlRpcStreamReader {
else if ( xmlStreamReader.getLocalName ( ).equals ( "name" ) ) {
name = getElementText ( );
}
else if ( xmlStreamReader.getLocalName ( ).equals ( "value" ) ) {
else if ( xmlStreamReader.getLocalName ( ).equals ( "value" ) && xmlStreamReader.getEventType () == XMLStreamConstants.START_ELEMENT) {
if ( name != null ) {
Object value = deserializeValue ( );
struct.put ( name , value );