MraidController NullPointerException on Android



i’m using MoPub 4.3.0 on my android app and on Crashlytics i’m seeing this crash:

Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method ‘void android.view.View.getLocationOnScreen(int[])’ on a null object reference
at com.mopub.mraid.MraidController$
at com.mopub.mraid.MraidController$ScreenMetricsWaiter$WaitRequest.countDown(SourceFile:385)
at com.mopub.mraid.MraidController$ScreenMetricsWaiter$WaitRequest.access$400(SourceFile:371)
at com.mopub.mraid.MraidController$ScreenMetricsWaiter$WaitRequest$1$1.onPreDraw(SourceFile:407)
at android.view.ViewTreeObserver.dispatchOnPreDraw(
at android.view.ViewRootImpl.performTraversals(
at android.view.ViewRootImpl.doTraversal(
at android.view.ViewRootImpl$
at android.view.Choreographer$
at android.view.Choreographer.doCallbacks(
at android.view.Choreographer.doFrame(
at android.view.Choreographer$
at android.os.Handler.handleCallback(
at android.os.Handler.dispatchMessage(
at android.os.Looper.loop(
at java.lang.reflect.Method.invoke(
at java.lang.reflect.Method.invoke(


Hi @LLoozIS,

Thank you for reporting this crash! Would you mind reaching out to us at with the following information?

  • Number of observed app crashes/frequency of the crashes: (e.g 5 crashes in 500 ad requests et al)
  • MoPub SDK version:
  • Partner SDK version, if involved:
  • Ad unit ID associated with the crash, if possible:
  • Steps to replicate the crash, if possible:
  • Crashlytics link and/or crash logs:

Thank you!