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 read from field 'int android.graphics.Point.x' on a null object reference #41

Closed
sushilsingh94 opened this issue Mar 10, 2016 · 7 comments
Labels

Comments

@sushilsingh94
Copy link

java.lang.NullPointerException: Attempt to read from field 'int android.graphics.Point.x' on a null object reference
at com.dlazaro66.qrcodereaderview.QRCodeReaderView.surfaceChanged(QRCodeReaderView.java:183)
at android.view.SurfaceView.updateWindow(SurfaceView.java:593)
at android.view.SurfaceView$3.onPreDraw(SurfaceView.java:177)
at android.view.ViewTreeObserver.dispatchOnPreDraw(ViewTreeObserver.java:944)
at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2055)
at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1107)
at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6013)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:858)
at android.view.Choreographer.doCallbacks(Choreographer.java:670)
at android.view.Choreographer.doFrame(Choreographer.java:606)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:844)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5417)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)

@JulieRaiyani
Copy link

Hello David,

I also face same issue while try with emulator and some device which camera not working properly.Can you please give me any solution as soon as possible.

Thanks in advance,
Julie

@Moshe-Malka
Copy link

same here...

@dmsherazi
Copy link

same here ... any solution?

@mgrabarski
Copy link

Hi, I also have this problem. Someone find solution for that?

@dmsherazi
Copy link

I noticed that this occurs on emulator only so I ignored it... haven't faced similar issue on a real device

@dlazaro66 dlazaro66 added the bug label Jul 18, 2016
@dlazaro66
Copy link
Owner

As @dmsherazi notice, this only occurs in an emulator. This is fixed, but not released yet. Will be available in the next version.

@meeshatyagi
Copy link

No It occurs in phone as well.

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

No branches or pull requests

7 participants