[Bugfix] fixed a bug that tries to parse inexistant state on Order
This commit is contained in:
parent
ce2afd365b
commit
63fc60bdfd
|
@ -98,7 +98,7 @@ public class XmlModelDefaultHandler extends DefaultHandler {
|
|||
Date orderDate = ISO8601FormatFactory.getInstance().getDateFormat().parse(orderDateS);
|
||||
order.setDate(orderDate);
|
||||
}
|
||||
if (orderDateS != null) {
|
||||
if (orderStateS != null) {
|
||||
State orderState = State.valueOf(orderStateS);
|
||||
order.setState(orderState);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue