commit | 60fc2bc6ff46da9d86893e4485c963fe5956db2d | [log] [tgz] |
---|---|---|
author | Ng Zhi An <zhin@google.com> | Fri Sep 29 13:02:41 2017 -0700 |
committer | Ng Zhi An <zhin@google.com> | Mon Oct 02 14:36:28 2017 -0700 |
tree | 31e5ff96162f0b802d3b74a3de4abbfad66c0b9d | |
parent | e19161126f2838d65c06102fc15dcd9638ad92a9 [diff] |
Fix NPE when listing recent files When there are no recent items in storage, mDownloadsDeletion gets set to null in setupEmptyState. Later on when we try to load the list of recent files, we deference this null object, causing a crash. Fixes: 67104773 Change-Id: I9e2bfff7ad13a4ecd72758d52bf4194a425f3b52 Test: make RunStorageManagerRoboTests Verify that without the fix, NPE in the newly added test. After fix, all tests pass