googleads-mobile-android-mediation icon indicating copy to clipboard operation
googleads-mobile-android-mediation copied to clipboard

MoPub Mediation Adapter : Null Point Access Issue

Open shomin1983 opened this issue 5 years ago • 1 comments

Hi, I found some crash issue by MoPub Mediation Adpater 5.4.1.2. at com.mopub.mobileads.dfp.adapters.MoPubAdapter$4.onInitializationFinished(MoPubAdapter.java:320) at com.google.ads.mediation.mopub.MoPubSingleton$1.onInitializationFinished(MoPubSingleton.java:92) at com.mopub.common.MoPub$1.run(MoPub.java:358) at android.os.Handler.handleCallback(Handler.java:873) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:214) at android.app.ActivityThread.main(ActivityThread.java:7058) at java.lang.reflect.Method.invoke(Method.java) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:965)

After checking codes in adapter, the mMoPubView may be set to null if onDestroy() is called, but didn't check mMoPubView is null before calling mMoPubView.loadAd().

Please help to fix NPE issue.

shomin1983 avatar Jun 03 '19 01:06 shomin1983

@shomin1983 Are you still facing this issue ?

spilaka avatar Sep 20 '19 18:09 spilaka