TeamAmaze / TeamAmaze/AmazeFileManager

NPE on SearchAsyncTask: null MainFragment

Open
#2,324 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Area-Search From-Email Issue-Bug
Dominant language
Kotlin
Stars
6.4k
Forks
1.7k
Avg merge
3d 9h
Merged PRs (30d)
1

Description

Issue explanation (write below this line)

Exception

  • User Action: UI Error
  • Request: Application crash
  • Version: 3.5.3
  • OS: Linux Android 9 - 28
  • Device: HWFIG-H
  • Model: FIG-LA1
  • Product: FIG-LA1
Crash log

java.lang.NullPointerException: Attempt to invoke virtual method 'void
com.amaze.filemanager.ui.fragments.MainFragment.onSearchCompleted(java.lang.String)'
on a null object reference
at
com.amaze.filemanager.ui.activities.MainActivity.onPostExecute(MainActivity.java:1855)
at
com.amaze.filemanager.asynchronous.asynctasks.SearchAsyncTask.onPostExecute(SearchAsyncTask.java:94)
at
com.amaze.filemanager.asynchronous.asynctasks.SearchAsyncTask.onPostExecute(SearchAsyncTask.java:35)
at android.os.AsyncTask.finish(AsyncTask.java:696)
at android.os.AsyncTask.access$600(AsyncTask.java:180)
at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:713)
at android.os.Handler.dispatchMessage(Handler.java:112)
at android.os.Looper.loop(Looper.java:216)
at android.app.ActivityThread.main(ActivityThread.java:7625)
at java.lang.reflect.Method.invoke(Native Method)
at
com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:524)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:987)


Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at MainActivity.java:1855 and SearchAsyncTask.java:94, tracing how task completion reaches MainFragment.onSearchCompleted(String). Reproduce the Android 9 search flow if possible and confirm the reported crash no longer occurs while search completion still works.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.