architecture-components-samples
architecture-components-samples copied to clipboard
WorkManagerSample throws NullPointerException and IndexOutOfBoundsException
- 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>.
- SelectImageActivity > handleImageRequestResult: It should be changed to handle both clipData and data, otherwise NullPointerException will throw.
Please resolve existing conflicts so we can continue to merge this PR.
The first error was fixed in this merged pr: https://github.com/android/architecture-components-samples/pull/1017