|
|
@@ -1,5 +1,6 @@
|
|
1
|
1
|
package se.citerus.dddsample.ws;
|
|
2
|
2
|
|
|
|
3
|
+import org.apache.commons.lang.StringUtils;
|
|
3
|
4
|
import org.apache.commons.logging.Log;
|
|
4
|
5
|
import org.apache.commons.logging.LogFactory;
|
|
5
|
6
|
import se.citerus.dddsample.domain.CarrierMovementId;
|
|
|
@@ -29,7 +30,7 @@ public class HandlingEventServiceEndpointImpl implements HandlingEventServiceEnd
|
|
29
|
30
|
Date date = parseIso8601Date(completionTime);
|
|
30
|
31
|
TrackingId tid = new TrackingId(trackingId);
|
|
31
|
32
|
CarrierMovementId cid;
|
|
32
|
|
- if (carrierMovementId != null) {
|
|
|
33
|
+ if (StringUtils.isNotBlank(carrierMovementId)) {
|
|
33
|
34
|
cid = new CarrierMovementId(carrierMovementId);
|
|
34
|
35
|
} else {
|
|
35
|
36
|
cid = null;
|