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

NPE version 1.0.0 #33

Closed
markGilchristBookingBug opened this issue May 26, 2017 · 2 comments
Closed

NPE version 1.0.0 #33

markGilchristBookingBug opened this issue May 26, 2017 · 2 comments
Assignees
Labels
Milestone

Comments

@markGilchristBookingBug
Copy link

markGilchristBookingBug commented May 26, 2017

I dont know if you have seen this one before or if it is fixed in 1.0.1

Fatal Exception: java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.NullPointerException: Attempt to invoke virtual method 'int android.graphics.Bitmap.getWidth()' on a null object reference
at io.fotoapparat.result.PendingResult.getResultUnsafe(PendingResult.java:125)
at io.fotoapparat.result.PendingResult.access$100(PendingResult.java:20)
at io.fotoapparat.result.PendingResult$2.run(PendingResult.java:97)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
at java.lang.Thread.run(Thread.java:818)
Caused by java.util.concurrent.ExecutionException: java.lang.NullPointerException: Attempt to invoke virtual method 'int android.graphics.Bitmap.getWidth()' on a null object reference
at java.util.concurrent.FutureTask.report(FutureTask.java:94)
at java.util.concurrent.FutureTask.get(FutureTask.java:164)
at io.fotoapparat.result.PendingResult.getResultUnsafe(PendingResult.java:123)
at io.fotoapparat.result.PendingResult.access$100(PendingResult.java:20)
at io.fotoapparat.result.PendingResult$2.run(PendingResult.java:97)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
at java.lang.Thread.run(Thread.java:818)
Caused by java.lang.NullPointerException: Attempt to invoke virtual method 'int android.graphics.Bitmap.getWidth()' on a null object reference
at io.fotoapparat.result.transformer.BitmapPhotoTransformer.transform(BitmapPhotoTransformer.java:30)
at io.fotoapparat.result.transformer.BitmapPhotoTransformer.transform(BitmapPhotoTransformer.java:13)
at io.fotoapparat.result.PendingResult$1.call(PendingResult.java:55)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
at java.lang.Thread.run(Thread.java:818)

@dmitry-zaitsev dmitry-zaitsev self-assigned this Jun 7, 2017
@dmitry-zaitsev dmitry-zaitsev added this to the 1.0.2 milestone Jun 7, 2017
@dmitry-zaitsev
Copy link
Member

Fixed. Fix will be available as part of 1.0.2.

Unfortunately it includes a small breaking change - photoResult.whenAvailable() now requires a ErrorHandler to be provided.

@markGilchristBookingBug
Copy link
Author

@dmitry-zaitsev thanks for this I will upgrade, and run this on the office htc and hawae. I will post any more crashlytics things i see. thanks for this mark

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

2 participants