Hello,
I got this error in Print SDK.
Any suggestions pls?
Fatal Exception: java.lang.NullPointerException: Attempt to invoke interface method 'boolean java.util.Map.containsKey(java.lang.Object)' on a null object reference
at com.zebra.sdk.comm.internal.UsbUtils.isCardPrinter()
at com.zebra.sdk.comm.UsbConnection.write()
at com.zebra.sdk.comm.ConnectionA.write()
at com.zebra.sdk.comm.ConnectionA.sendAndWaitForValidResponse()
at com.zebra.sdk.printer.SGD.GET()
at com.zebra.sdk.printer.SGD.GET()
at com.zebra.sdk.printer.internal.ZebraPrinterFactoryHelper.getApplNameHocusPocus()
at com.zebra.sdk.printer.internal.ZebraPrinterFactoryHelper.getLanguage()
at com.zebra.sdk.printer.internal.ZebraPrinterFactoryHelper.getInstance()
at com.zebra.sdk.printer.internal.ZebraPrinterFactoryHelper.getInstance()
at com.zebra.sdk.printer.ZebraPrinterFactory.getInstance()
4 Replies
Hi, the map you're looking for a key inside is null - you'll need to null check your map before checking for any keys.
Hi, thx for the replay. Yes, that I known, but the problem is, that thi part of the code is inside the SDK from Zebra, as you can see from package name
no news on this? :)
no news on this? :)