Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Unintended behavior
View staffing
Description
Version used: 1.0.0-alpha01
Devices/Android versions reproduced on: Android Wear running Android O
I've set up work with beginUniqueWork:
workManager.beginUniqueWork(TAG, ExistingWorkPolicy.REPLACE,
OneTimeWorkRequestBuilder<ArtworkComplicationWorker>()
.setConstraints(Constraints.Builder()
.addContentUriTrigger(MuzeiContract.Artwork.CONTENT_URI, true)
.build())
.build()
).enqueue()
And I call this same method again at the end of my doWork(). This breaks after about ~3 runs
05-10 23:24:33.161 net.nurik.roman.muzei E/AndroidRuntime: FATAL EXCEPTION: pool-2-thread-1
Process: net.nurik.roman.muzei, PID: 927
java.lang.NullPointerException: Attempt to invoke virtual method 'boolean androidx.work.State.isFinished()' on a null object reference
at androidx.work.impl.WorkerWrapper.tryCheckForInterruptionAndNotify(WorkerWrapper.java:192)
at androidx.work.impl.WorkerWrapper.run(WorkerWrapper.java:146)
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)