Fixed
Status Update
Comments
na...@gmail.com <na...@gmail.com> #2
java.lang.NullPointerException: Attempt to invoke virtual method 'int androidx.work.ListenableWorker$Result.ordinal()' on a null object reference
at androidx.work.impl.WorkerWrapper.handleResult(WorkerWrapper.java:378)
at androidx.work.impl.WorkerWrapper.onWorkFinished(WorkerWrapper.java:276)
at androidx.work.impl.WorkerWrapper$2.run(WorkerWrapper.java:251)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
at java.lang.Thread.run(Thread.java:764)
at androidx.work.impl.WorkerWrapper.handleResult(WorkerWrapper.java:378)
at androidx.work.impl.WorkerWrapper.onWorkFinished(WorkerWrapper.java:276)
at androidx.work.impl.WorkerWrapper$2.run(WorkerWrapper.java:251)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
at java.lang.Thread.run(Thread.java:764)
ra...@google.com <ra...@google.com> #3
Can you send us a code sample which reproduces the problem ?
The only obvious this could happen looking at our code, is if your Worker returned a `null` result. I am trying to understand if there is a chance that might happen inside from your Worker.
The only obvious this could happen looking at our code, is if your Worker returned a `null` result. I am trying to understand if there is a chance that might happen inside from your Worker.
su...@google.com <su...@google.com> #4
Handled in https://android-review.googlesource.com/c/platform/frameworks/support/+/839439 ; but please note the actual problem is that your code is returning null for a value that is annotated as @NonNull, so we will mark your work as failed in this situation. You should fix your code.
Description
Version used: 1.0.0-alpha11
Devices/Android versions reproduced on: Android oreo - 8.1
If this is a bug in the library, we would appreciate if you could attach:
- Sample project to trigger the issue.
- A screenrecord or screenshots showing the issue (if UI related).