{"action":"created","issue":{"url":"https://api.github.com/repos/evernote/android-job/issues/477","repository_url":"https://api.github.com/repos/evernote/android-job","labels_url":"https://api.github.com/repos/evernote/android-job/issues/477/labels{/name}","comments_url":"https://api.github.com/repos/evernote/android-job/issues/477/comments","events_url":"https://api.github.com/repos/evernote/android-job/issues/477/events","html_url":"https://github.com/evernote/android-job/issues/477","id":331548517,"node_id":"MDU6SXNzdWUzMzE1NDg1MTc=","number":477,"title":"WorkManager crash when cancelling all works using LeakCanary","user":{"login":"XabierGoros","id":7863380,"node_id":"MDQ6VXNlcjc4NjMzODA=","avatar_url":"https://avatars1.githubusercontent.com/u/7863380?v=4","gravatar_id":"","url":"https://api.github.com/users/XabierGoros","html_url":"https://github.com/XabierGoros","followers_url":"https://api.github.com/users/XabierGoros/followers","following_url":"https://api.github.com/users/XabierGoros/following{/other_user}","gists_url":"https://api.github.com/users/XabierGoros/gists{/gist_id}","starred_url":"https://api.github.com/users/XabierGoros/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/XabierGoros/subscriptions","organizations_url":"https://api.github.com/users/XabierGoros/orgs","repos_url":"https://api.github.com/users/XabierGoros/repos","events_url":"https://api.github.com/users/XabierGoros/events{/privacy}","received_events_url":"https://api.github.com/users/XabierGoros/received_events","type":"User","site_admin":false},"labels":[{"id":250670178,"node_id":"MDU6TGFiZWwyNTA2NzAxNzg=","url":"https://api.github.com/repos/evernote/android-job/labels/bug","name":"bug","color":"fc2929","default":true},{"id":948325949,"node_id":"MDU6TGFiZWw5NDgzMjU5NDk=","url":"https://api.github.com/repos/evernote/android-job/labels/pre-release","name":"pre-release","color":"bfd4f2","default":false}],"state":"closed","locked":false,"assignee":{"login":"vRallev","id":1558045,"node_id":"MDQ6VXNlcjE1NTgwNDU=","avatar_url":"https://avatars3.githubusercontent.com/u/1558045?v=4","gravatar_id":"","url":"https://api.github.com/users/vRallev","html_url":"https://github.com/vRallev","followers_url":"https://api.github.com/users/vRallev/followers","following_url":"https://api.github.com/users/vRallev/following{/other_user}","gists_url":"https://api.github.com/users/vRallev/gists{/gist_id}","starred_url":"https://api.github.com/users/vRallev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vRallev/subscriptions","organizations_url":"https://api.github.com/users/vRallev/orgs","repos_url":"https://api.github.com/users/vRallev/repos","events_url":"https://api.github.com/users/vRallev/events{/privacy}","received_events_url":"https://api.github.com/users/vRallev/received_events","type":"User","site_admin":false},"assignees":[{"login":"vRallev","id":1558045,"node_id":"MDQ6VXNlcjE1NTgwNDU=","avatar_url":"https://avatars3.githubusercontent.com/u/1558045?v=4","gravatar_id":"","url":"https://api.github.com/users/vRallev","html_url":"https://github.com/vRallev","followers_url":"https://api.github.com/users/vRallev/followers","following_url":"https://api.github.com/users/vRallev/following{/other_user}","gists_url":"https://api.github.com/users/vRallev/gists{/gist_id}","starred_url":"https://api.github.com/users/vRallev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vRallev/subscriptions","organizations_url":"https://api.github.com/users/vRallev/orgs","repos_url":"https://api.github.com/users/vRallev/repos","events_url":"https://api.github.com/users/vRallev/events{/privacy}","received_events_url":"https://api.github.com/users/vRallev/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2018-06-12T11:31:55Z","updated_at":"2018-07-21T00:17:56Z","closed_at":"2018-07-21T00:17:56Z","author_association":"NONE","body":"I'm using LeakCanary in my project just for debug flavor. I'm getting the following exception when trying to use this library with WorkManager compatibility.\r\n\r\nAffected version: v1.3.0-alpha02\r\n\r\n```\r\nAndroidRuntime: Shutting down VM\r\nAndroidRuntime: FATAL EXCEPTION: main\r\nAndroidRuntime: Process: com.myapp.test.debug:leakcanary, PID: 24385\r\nAndroidRuntime: java.lang.RuntimeException: Unable to create application com.myapp.test.DevelopmentApplication: java.lang.NullPointerException: Attempt to invoke virtual method 'void androidx.work.WorkManager.cancelAllWorkByTag(java.lang.String)' on a null object reference\r\nAndroidRuntime: \tat android.app.ActivityThread.handleBindApplication(ActivityThread.java:5406)\r\nAndroidRuntime: \tat android.app.ActivityThread.-wrap2(ActivityThread.java)\r\nAndroidRuntime: \tat android.app.ActivityThread$H.handleMessage(ActivityThread.java:1545)\r\nAndroidRuntime: \tat android.os.Handler.dispatchMessage(Handler.java:102)\r\nAndroidRuntime: \tat android.os.Looper.loop(Looper.java:154)\r\nAndroidRuntime: \tat android.app.ActivityThread.main(ActivityThread.java:6119)\r\nAndroidRuntime: \tat java.lang.reflect.Method.invoke(Native Method)\r\nAndroidRuntime: \tat com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)\r\nAndroidRuntime: \tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)\r\nAndroidRuntime: Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void androidx.work.WorkManager.cancelAllWorkByTag(java.lang.String)' on a null object reference\r\nAndroidRuntime: \tat com.evernote.android.job.work.JobProxyWorkManager.cancel(JobProxyWorkManager.java:85)\r\nAndroidRuntime: \tat com.evernote.android.job.JobManager.cancelInner(JobManager.java:401)\r\nAndroidRuntime: \tat com.evernote.android.job.JobManager.cancelAllInner(JobManager.java:424)\r\nAndroidRuntime: \tat com.evernote.android.job.JobManager.cancelAllForTag(JobManager.java:395)\r\nAndroidRuntime: \tat com.evernote.android.job.JobManager.schedule(JobManager.java:185)\r\nAndroidRuntime: \tat com.evernote.android.job.JobRequest.schedule(JobRequest.java:426)\r\nAndroidRuntime: \tat com.myapp.test.tasks.MySyncJob$Companion.schedulePeriodicJob(MySyncJob.kt:103)\r\nAndroidRuntime: \tat com.myapp.test.managers.MyJobManager.startPeriodicSync(MyJobManager.kt:49)\r\nAndroidRuntime: \tat com.myapp.test.MyBaseApplication.onCreate(MyBaseApplication.kt:74)\r\nAndroidRuntime: \tat com.myapp.test.DevelopmentApplication.onCreate(DevelopmentApplication.kt:8)\r\nAndroidRuntime: \tat android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1024)\r\nAndroidRuntime: \tat android.app.ActivityThread.handleBindApplication(ActivityThread.java:5403)\r\nAndroidRuntime: \t... 8 more\r\n```\r\n\r\nWithout this integration I never got this error ever."},"comment":{"url":"https://api.github.com/repos/evernote/android-job/issues/comments/406755962","html_url":"https://github.com/evernote/android-job/issues/477#issuecomment-406755962","issue_url":"https://api.github.com/repos/evernote/android-job/issues/477","id":406755962,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNjc1NTk2Mg==","user":{"login":"vRallev","id":1558045,"node_id":"MDQ6VXNlcjE1NTgwNDU=","avatar_url":"https://avatars3.githubusercontent.com/u/1558045?v=4","gravatar_id":"","url":"https://api.github.com/users/vRallev","html_url":"https://github.com/vRallev","followers_url":"https://api.github.com/users/vRallev/followers","following_url":"https://api.github.com/users/vRallev/following{/other_user}","gists_url":"https://api.github.com/users/vRallev/gists{/gist_id}","starred_url":"https://api.github.com/users/vRallev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vRallev/subscriptions","organizations_url":"https://api.github.com/users/vRallev/orgs","repos_url":"https://api.github.com/users/vRallev/repos","events_url":"https://api.github.com/users/vRallev/events{/privacy}","received_events_url":"https://api.github.com/users/vRallev/received_events","type":"User","site_admin":false},"created_at":"2018-07-21T00:17:55Z","updated_at":"2018-07-21T00:17:55Z","author_association":"CONTRIBUTOR","body":"I've published a new release `1.3.0-alpha04`. The issue should be fixed there."}}
{"actor":{"display_login":"vRallev"}}