TeamAmaze / TeamAmaze/AmazeFileManager

`NoSuchMethodError` on `RenameBookmark#onCreateDialog`

Open
#3,335 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Issue explanation (write below this line)

When taping on edit (pen icon) of default folder shortcut such as pic and
music on the left side of app, this error appears.

Exception

  • App Name: Amaze File Manager
  • Package: com.amaze.filemanager
  • Version: 3.7.0
  • User Action: UI Error
  • Request: Application crash
  • OS: Linux Android 5.1.1 - 22
  • Device: lt03lte
  • Model: SM-P605
  • Product: lt03ltexx
Crash log

java.lang.NoSuchMethodError: No virtual method
getContext()Landroid/content/Context; in class Landroid/app/DialogFragment;
or its super classes (declaration of 'android.app.DialogFragment' appears
in /system/framework/framework.jar:classes2.dex)
at
com.amaze.filemanager.ui.dialogs.RenameBookmark.onCreateDialog(RenameBookmark.java:87)
at android.app.DialogFragment.getLayoutInflater(DialogFragment.java:398)
at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:904)
at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1082)
at android.app.BackStackRecord.run(BackStackRecord.java:834)
at
android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1467)
at android.app.FragmentManagerImpl$1.run(FragmentManager.java:452)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:145)
at android.app.ActivityThread.main(ActivityThread.java:6873)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1404)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1199)


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 with RenameBookmark.onCreateDialog at line 87, where the crash log identifies the failing call. Reproduce the edit action on a default folder shortcut on Android 5.1.1 or inspect that method's DialogFragment API usage. Done means editing shortcuts such as Pictures or Music no longer crashes with NoSuchMethodError.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.