Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.NullPointerException: Attempt to invoke virtual method 'com.sunmi.printerx.api.LineApi com.sunmi.printerx.PrinterSdk$Printer.lineApi()' on a null object reference #535

Open
nadeemabualarayes opened this issue Aug 19, 2024 · 0 comments

Comments

@nadeemabualarayes
Copy link

Null reference encountered during printing
java.lang.NullPointerException: Attempt to invoke virtual method 'com.sunmi.printerx.api.LineApi com.sunmi.printerx.PrinterSdk$Printer.lineApi()' on a null object reference
at com.sunmi.samples.printerx.TicketFragment.lambda$onViewCreated$0$com-sunmi-samples-printerx-TicketFragment(TicketFragment.java:52)
at com.sunmi.samples.printerx.TicketFragment$$ExternalSyntheticLambda0.onClick(Unknown Source:2)
at android.view.View.performClick(View.java:7527)
at android.view.View.performClickInternal(View.java:7500)
at android.view.View.-$$Nest$mperformClickInternal(Unknown Source:0)
at android.view.View$PerformClick.run(View.java:29538)
at android.os.Handler.handleCallback(Handler.java:942)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:201)
at android.os.Looper.loop(Looper.java:288)
at android.app.ActivityThread.main(ActivityThread.java:7941)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:569)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1015)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant