Fix nullpointer when logging recognition info
@@ -369,7 +369,11 @@ public class Status implements EventCallback {
LOG.debug("ConnectionHandle: {}, {}", ch.getIFDName(), ch.getSlotHandle());
RecognitionInfo info = ch.getRecognitionInfo();
+ if (info != null) {
LOG.debug("RecognitionInfo: {}, {}", info.getCardType(), ByteUtils.toHexString(info.getCardIdentifier()));
+ } else {
+ LOG.debug("RecognitionInfo: null");
+ }
String ifdName = ch.getIFDName();
LOG.debug("IFDName: {}", ifdName);
