TeamAmaze / AmazeFileManager

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

Crash reported by mikz_04 #3662

Closed amaze-issue-automation[bot] closed 1 year ago

amaze-issue-automation[bot] commented 1 year ago

Issue explanation (write below this line)

Exception

java.lang.NullPointerException: Attempt to invoke virtual method 'int android.content.Context.getColor(int)' on a null object reference at androidx.core.content.ContextCompat$Api23Impl$$ExternalSyntheticApiModelOutline1.m(Unknown Source:0) at com.amaze.filemanager.utils.Utils.getColor(Utils.java:141) at com.amaze.filemanager.ui.fragments.MainFragment.initNoFileLayout(MainFragment.java:713) at com.amaze.filemanager.ui.fragments.MainFragment.reloadListElements(MainFragment.java:878) at com.amaze.filemanager.ui.fragments.MainFragment.setListElements(MainFragment.java:739) at com.amaze.filemanager.ui.fragments.MainFragment.lambda$loadlist$3(MainFragment.java:611) at com.amaze.filemanager.ui.fragments.MainFragment.$r8$lambda$9qQv21X8JwPlLXi_cDXfu4p-_VI(Unknown Source:0) at com.amaze.filemanager.ui.fragments.MainFragment$$ExternalSyntheticLambda6.onAsyncTaskFinished(Unknown Source:8) at com.amaze.filemanager.asynchronous.asynctasks.LoadFilesListTask.onPostExecute(LoadFilesListTask.java:206) at com.amaze.filemanager.asynchronous.asynctasks.LoadFilesListTask.onPostExecute(LoadFilesListTask.java:85) at android.os.AsyncTask.finish(AsyncTask.java:771) at android.os.AsyncTask.access$900(AsyncTask.java:199) at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:788) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loopOnce(Looper.java:233) at android.os.Looper.loop(Looper.java:344) at android.app.ActivityThread.main(ActivityThread.java:8212) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:584) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1034)


Reporter: mikz_04

VishnuSanal commented 1 year ago

dupe #2514