Fix possible Nullpointer for ChannelHandle
@@ -822,6 +822,9 @@ public class AndroidMarshaller implements WSMarshaller {
// ChannelHandle
ChannelHandleType h = p.getCardAppPathRequest().getChannelHandle();
+
+ if(h != null){
+
Element emChild = createElementIso(document, "ChannelHandle");
em.appendChild(emChild);
@@ -874,6 +877,7 @@ public class AndroidMarshaller implements WSMarshaller {
emChild = createElementIso(document, "CardApplication");
emChild.appendChild(document.createTextNode(ByteUtils.toHexString(p.getCardAppPathRequest().getCardApplication())));
em.appendChild(emChild);
+ }
rootElement.appendChild(em);
} else if (o instanceof CardApplicationPathResponse) {
