Bug? Crash on msgbox

Ferdari

Active Member
Licensed User
I got this crash when closing an Admob fullscreen ad an then displaying a msgbox

B4X:
** Activity (main) Pause, UserClosed = false **
** Activity (main) Resume **

java.lang.NullPointerException
    at b4a.example.main$ResumeMessage.run(main.java:273)
    at android.os.Handler.handleCallback(Handler.java:615)
    at android.os.Handler.dispatchMessage(Handler.java:92)
    at android.os.Looper.loop(Looper.java:137)
    at android.app.ActivityThread.main(ActivityThread.java:4745)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:511)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
    at dalvik.system.NativeStart.main(Native Method)
My code:
B4X:
Sub adFull_onAdClosed
  Log("AD closed")
   adseen.Text="Vistas: " & adcount   
   If adcount=3 Then
     Msgbox("message text here","title here")
     Button1.Visible=True
   End If
   
   adFull.loadAd(adBuilder.Build)  ' Load next ad

End Sub
Any help would be appreciated ;)
 

Ferdari

Active Member
Licensed User
that is the full error message;

ill try your suggestion, Thanks you Erel :)
 
Top