Skip to content

Exception when deleting file #4468

@jpstotz

Description

@jpstotz

Describe the bug
When deleting a file always an exception occurs. Afterwards the file to be deleted is gone, so the delete operation seem to work.

To Reproduce
Steps to reproduce the behavior:

  1. Go to standard Download folder
  2. Klick the three dotws Menü of a file stored there
  3. Select delete, in the dialog keep default (delete permanently disabled)
  4. See error

Issue explanation (write below this line)

Exception

  • App Name: Amaze Dateimanager
  • Package: com.amaze.filemanager
  • Version: 3.10
  • User Action: UI Error
  • Request: Application crash
  • OS: Linux samsung/gts9wifieea/gts9wifi:15/AP3A.240905.015.A2/X710XXU5CYD9:user/release-keys 15 - 35
  • Device: gts9wifi
  • Model: SM-X710
  • Product: gts9wifieea
Crash log

io.reactivex.exceptions.OnErrorNotImplementedException: The exception was not handled due to missing onError handler in the subscribe() method call. Further reading: https://github.com/ReactiveX/RxJava/wiki/Error-Handling | java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.amaze.trashbin.TrashBinFile.getPath()' on a null object reference
	at io.reactivex.internal.observers.EmptyCompletableObserver.onError(EmptyCompletableObserver.java:50)
	at io.reactivex.internal.operators.completable.CompletableSubscribeOn$SubscribeOnObserver.onError(CompletableSubscribeOn.java:74)
	at io.reactivex.internal.operators.completable.CompletableFromRunnable.subscribeActual(CompletableFromRunnable.java:40)
	at io.reactivex.Completable.subscribe(Completable.java:2309)
	at io.reactivex.internal.operators.completable.CompletableSubscribeOn$SubscribeOnObserver.run(CompletableSubscribeOn.java:64)
	at io.reactivex.Scheduler$DisposeTask.run(Scheduler.java:578)
	at io.reactivex.internal.schedulers.ScheduledRunnable.run(ScheduledRunnable.java:66)
	at io.reactivex.internal.schedulers.ScheduledRunnable.call(ScheduledRunnable.java:57)
	at java.util.concurrent.FutureTask.run(FutureTask.java:317)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:348)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1156)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:651)
	at java.lang.Thread.run(Thread.java:1119)
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.amaze.trashbin.TrashBinFile.getPath()' on a null object reference
	at com.amaze.trashbin.TrashBin.deletePermanently(TrashBin.kt:121)
	at com.amaze.filemanager.filesystem.HybridFile.deletePermanentlyFromBin(HybridFile.java:1600)
	at com.amaze.filemanager.filesystem.HybridFile.delete(HybridFile.java:1543)
	at com.amaze.filemanager.application.AppConfig.lambda$getTrashBinInstance$2(AppConfig.java:285)
	at com.amaze.filemanager.application.AppConfig.$r8$lambda$hMGiVDvfwwzG3tz2_fRQ8F7OGvY(Unknown Source:0)
	at com.amaze.filemanager.application.AppConfig$$ExternalSyntheticLambda4.run(Unknown Source:4)
	at io.reactivex.internal.operators.completable.CompletableFromRunnable.subscribeActual(CompletableFromRunnable.java:36)
	... 10 more


Smartphone (please complete the following information):

  • Device: Samsung Tab S9
  • OS: Android 15
  • Rooted: No

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-FileOperationsRelated to file operations (e.g. moving, copying, renaming).Area-TrashAn issue related to the trash/bin featureIssue-BugRelated unexpected behavior or something worth investigating.Issue-Severe (high)Showstopper issues that require immediate attention

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions