Skip to content
  • Watch

    Notifications

  • Fork

    Fork droid-comic-viewer

    If this dialog fails to load, you can visit the fork page directly.

Crash when long-pressing a folder #11

Open
HenryHu opened this issue Feb 28, 2013 · 0 comments
Open

Crash when long-pressing a folder #11

HenryHu opened this issue Feb 28, 2013 · 0 comments

Comments

@HenryHu

Pick your reaction

@HenryHu HenryHu commented Feb 28, 2013

Crash on Nexus 4, ACV 1.4.1.4:

  1. start the app
  2. click menu
  3. choose "open"
  4. go to directories like /mnt
  5. long-press a folder, like "secure"
  6. crash

The reason is that, when you don't have permission, File.list() would return null. But this is not checked. The problem happens in src/net/robotmedia/acv/ui/SDBrowserActivity.java:111, where you called file.list() and later used the result. The return code may be null.

In this case, it's due to permission, so maybe it's not that interesting. However, it may also return null due to other reasons. Anyway, showing an error message is better than crashing.

@mattiafazzini
Select a reply ctrl .
Remember, contributions to this repository should follow our GitHub Community Guidelines.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant