Fix a error in stream reader
This commit is contained in:
parent
318c470f3b
commit
92a28dc627
1 changed files with 6 additions and 2 deletions
|
@ -62,6 +62,10 @@ public class XmlRpcStreamReader {
|
|||
if ( event == XMLStreamConstants.START_ELEMENT ) {
|
||||
String elementName = xmlStreamReader.getLocalName ( );
|
||||
if ( elementName.equals ( "param" ) ) {
|
||||
require( XMLStreamConstants.START_ELEMENT, null, "value");
|
||||
nextTag (); // Something to be deserialized!
|
||||
|
||||
|
||||
Object value = deserializeValue ( );
|
||||
paramsList.add ( value );
|
||||
}
|
||||
|
@ -83,8 +87,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 ( );
|
||||
|
|
Loading…
Reference in a new issue