Caused by java.lang.NullPointerException: Attempt to invoke virtual method 'void android.app.Dialog.setCancelable(boolean)' on a null object reference at com.aravi.dot.Utils.dismissPermissionDialog(Utils.java:28) at com.aravi.dot.main.MainActivity.onResume(MainActivity.java:188) at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1454) at android.app.Activity.performResume(Activity.java:8050) at android.app.ActivityThread.performResumeActivity(ActivityThread.java:4260) at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:4302) at android.app.servertransaction.ResumeActivityItem.execute(ResumeActivityItem.java:52) at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:176) at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:97) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2044) at android.os.Handler.dispatchMessage(Handler.java:107) at android.os.Looper.loop(Looper.java:224) at android.app.ActivityThread.main(ActivityThread.java:7562) at java.lang.reflect.Method.invoke(Method.java) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:539) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:950)
Caused by java.lang.NullPointerException: Attempt to invoke virtual method 'void android.app.Dialog.setCancelable(boolean)' on a null object reference at com.aravi.dot.Utils.dismissPermissionDialog(Utils.java:28) at com.aravi.dot.main.MainActivity.onResume(MainActivity.java:188) at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1454) at android.app.Activity.performResume(Activity.java:8050) at android.app.ActivityThread.performResumeActivity(ActivityThread.java:4260) at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:4302) at android.app.servertransaction.ResumeActivityItem.execute(ResumeActivityItem.java:52) at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:176) at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:97) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2044) at android.os.Handler.dispatchMessage(Handler.java:107) at android.os.Looper.loop(Looper.java:224) at android.app.ActivityThread.main(ActivityThread.java:7562) at java.lang.reflect.Method.invoke(Method.java) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:539) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:950)