java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.Resources$Theme android.content.Context.getTheme()' on a null object reference
at android.app.AlertDialog.resolveDialogTheme(AlertDialog.java:222)
at android.app.AlertDialog$Builder.(AlertDialog.java:455)
at Model.MFBUtil.Alert(MFBUtil.java:48)
at Model.MFBUtil.Alert(MFBUtil.java:57)
at com.myflightbook.android.ActRecentsWS$RefreshFlightsTask.onPostExecute(ActRecentsWS.java:356)
at com.myflightbook.android.ActRecentsWS$RefreshFlightsTask.onPostExecute(ActRecentsWS.java:304)
at android.os.AsyncTask.finish(AsyncTask.java:660)
at android.os.AsyncTask.-wrap1(AsyncTask.java)
at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:677)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6682)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1520)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1410)
Attempt to invoke virtual method 'android.content.res.Resources$Theme android.content.Context.getTheme()' on a null object referenceAttempt to invoke virtual method 'android.content.res.Resources$Theme android.content.Context.getTheme()' on a null object reference
java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.Resources$Theme android.content.Context.getTheme()' on a null object reference at android.app.AlertDialog.resolveDialogTheme(AlertDialog.java:222) at android.app.AlertDialog$Builder.(AlertDialog.java:455)
at Model.MFBUtil.Alert(MFBUtil.java:48)
at Model.MFBUtil.Alert(MFBUtil.java:57)
at com.myflightbook.android.ActRecentsWS$RefreshFlightsTask.onPostExecute(ActRecentsWS.java:356)
at com.myflightbook.android.ActRecentsWS$RefreshFlightsTask.onPostExecute(ActRecentsWS.java:304)
at android.os.AsyncTask.finish(AsyncTask.java:660)
at android.os.AsyncTask.-wrap1(AsyncTask.java)
at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:677)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6682)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1520)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1410)
Attempt to invoke virtual method 'android.content.res.Resources$Theme android.content.Context.getTheme()' on a null object referenceAttempt to invoke virtual method 'android.content.res.Resources$Theme android.content.Context.getTheme()' on a null object reference