[Bugfix] fixed a bug that tries to parse inexistant state on Order

This commit is contained in:
Robert von Burg 2014-01-22 20:19:10 +01:00
parent ce2afd365b
commit 63fc60bdfd
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}