tvbarthel / BlurDialogFragment

Library project to display DialogFragment with a blur effect.
Apache License 2.0
2.09k stars 334 forks source link

NPE getActionBarHeight (r.tvbarthel.blurdialogfragment:lib:2.2.0) #86

Open WagesOfSin opened 7 years ago

WagesOfSin commented 7 years ago

Android: 6.0.1 Android Build: MMB29M.J500HXXU2BQC4 Manufacturer: samsung Model: SM-J500H Thread: AsyncTask #3-11668 CrashReporter Key: 5DCDAADF-0C2A-ABFB-EA2E-94F387C25DA58E36B076 Start Date: Fri Jul 28 15:12:07 GMT+03:00 2017 Date: Sat Jul 29 00:34:44 GMT+03:00 2017

java.lang.RuntimeException: An error occurred while executing doInBackground() at android.os.AsyncTask$3.done(AsyncTask.java:309) at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:354) at java.util.concurrent.FutureTask.setException(FutureTask.java:223) at java.util.concurrent.FutureTask.run(FutureTask.java:242) at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:234) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588) at java.lang.Thread.run(Thread.java:818) Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'android.app.ActionBar android.app.Activity.getActionBar()' on a null object reference at fr.tvbarthel.lib.blurdialogfragment.BlurDialogEngine.getActionBarHeight(BlurDialogEngine.java:471) at fr.tvbarthel.lib.blurdialogfragment.BlurDialogEngine.blur(BlurDialogEngine.java:344) at fr.tvbarthel.lib.blurdialogfragment.BlurDialogEngine.access$400(BlurDialogEngine.java:42) at fr.tvbarthel.lib.blurdialogfragment.BlurDialogEngine$BlurAsyncTask.doInBackground(BlurDialogEngine.java:593) at fr.tvbarthel.lib.blurdialogfragment.BlurDialogEngine$BlurAsyncTask.doInBackground(BlurDialogEngine.java:550) at android.os.AsyncTask$2.call(AsyncTask.java:295) at java.util.concurrent.FutureTask.run(FutureTask.java:237) ... 4 more