architecture-components-samples icon indicating copy to clipboard operation
architecture-components-samples copied to clipboard

WorkManagerSample throws NullPointerException and IndexOutOfBoundsException

Open dalcomdev opened this issue 3 years ago • 2 comments

  1. When selecting a image, there's a IndexOutOfBoundsException in FilterViewModel. Change FilterViewModel > workInfo to return WorkInfo List, it works fine. Accordingly, observer needs to be changed so that it can accepts List<WorkInfo>.
  2. SelectImageActivity > handleImageRequestResult: It should be changed to handle both clipData and data, otherwise NullPointerException will throw.

dalcomdev avatar Apr 13 '21 16:04 dalcomdev

Please resolve existing conflicts so we can continue to merge this PR.

keyboardsurfer avatar Jun 16 '21 11:06 keyboardsurfer

The first error was fixed in this merged pr: https://github.com/android/architecture-components-samples/pull/1017

calren avatar Sep 02 '21 23:09 calren