I dont understand the behaviour of receipt printer .for some order it prints and some times it shows Null Pointer exception . Please help me to resolve this issue .
Why mac=null, ip=null these values are Null ?
print failed, printer: Printer{uuid=YRG4G36VKHW3G, type=SEIKOMINIUSB, name=Mini, mac=null, ip=null, category=RECEIPT} java.lang.NullPointerException at com.clover.engine.services.ReceiptPrinterPlugins.ReceiptGenerator.createReceiptView(ReceiptGenerator.java:2060) at com.clover.engine.services.ReceiptPrinterPlugins.ReceiptGenerator.createReceiptView(ReceiptGenerator.java:1608) at com.clover.engine.services.ReceiptPrinterPlugins.seiko.SeikoMini.printReceipt(SeikoMini.java:75) at com.clover.engine.services.PrinterIntentService.onHandleIntent(PrinterIntentService.java:325) at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:136) at android.os.HandlerThread.run(HandlerThread.java:61)
also let me know these things :-
- for receipt printer , employee must be mapped with any order ?
- for receipt printer , payment id is required or order id ?