Skip to content

Raw 'NoSuchFileException' toast shown when deleting a folder and accessing it via stale navigation bar #1530

@XYIheng

Description

@XYIheng

Describe the bug
When a folder is deleted, the app displays a raw Java exception (java8.nio.NoSuchFileException) in a Toast message instead of handling it gracefully. Furthermore, the breadcrumb navigation bar fails to update; it retains the path to the deleted folder. Clicking this stale path in the navigation bar triggers the same raw exception again.

To Reproduce

  1. Open the file manager and navigate to a directory containing a folder.
  2. Long-press a folder to select it.
  3. Long-press the folder again to enter it while it remains selected.
  4. Tap the Delete button to delete this folder.
  5. Issue 1: Observe a Toast displaying a raw exception: java8.nio.NoSuchFileException.
  6. Navigate back to the parent directory (the last folder).
  7. Notice that the deleted folder still appears in the top navigation bar (breadcrumbs).
  8. Tap the deleted folder's name in the navigation bar.
  9. Issue 2: Observe the same java8.nio.NoSuchFileException Toast appears again.

Expected behavior

  • The app should never expose raw Java exceptions to the user
  • Once a folder is deleted, the app should automatically update the breadcrumb navigation bar to remove the deleted path and safely redirect the user to the nearest existing parent directory. (or prevent the user to enter the deleted folder)

Video

20260225_211540.mp4

Smartphone (please complete the following information):

  • OS: [Android 11]
  • Version: [1.7.4]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions