TeamAmaze / AmazeFileManager

Material design file manager for Android
https://teamamaze.xyz
GNU General Public License v3.0
5.36k stars 1.58k forks source link

NPE when clicking on popup items after triggering system split screen #2752

Closed amaze-issue-automation[bot] closed 3 years ago

amaze-issue-automation[bot] commented 3 years ago

Issue explanation (write below this line)

Exception

java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.Context android.app.Activity.getApplicationContext()' on a null object reference at com.amaze.filemanager.ui.dialogs.GeneralDialogCreation.showPropertiesDialog(GeneralDialogCreation.java:425) at com.amaze.filemanager.ui.dialogs.GeneralDialogCreation.showPropertiesDialogWithPermissions(GeneralDialogCreation.java:403) at com.amaze.filemanager.ui.ItemPopupMenu.onMenuItemClick(ItemPopupMenu.java:93) at android.widget.PopupMenu$1.onMenuItemSelected(PopupMenu.java:105) at com.android.internal.view.menu.MenuBuilder.dispatchMenuItemSelected(MenuBuilder.java:761) at com.android.internal.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:167) at com.android.internal.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:908) at com.android.internal.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:898) at com.android.internal.view.menu.MenuPopup.onItemClick(MenuPopup.java:128) at android.widget.AdapterView.performItemClick(AdapterView.java:318) at android.widget.AbsListView.performItemClick(AbsListView.java:1181) at android.widget.AbsListView$PerformClick.run(AbsListView.java:3150) at android.os.Handler.handleCallback(Handler.java:790) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:164) at android.app.ActivityThread.main(ActivityThread.java:6518) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)


Reporter: shuvashish76

shuvashish76 commented 3 years ago

Screenshot_2021-08-27-11-01-44

https://user-images.githubusercontent.com/48226312/131077786-f1151ad4-855b-46a9-84c5-ed10d0ec2ca9.mp4

https://github.com/zhanghai/MaterialFiles/issues/574

VishnuSanal commented 3 years ago

This happens when any option is selected from the popup menu - making it high-priority