Re: SeeingNullPointerException in LogCat

129 views
Skip to first unread message

Eric Leichtenschlag

unread,
Jun 19, 2012, 7:41:21 PM6/19/12
to google-adm...@googlegroups.com
Hey Richard,

The exception is in fact being caught and logged.  It should probably be logged at the warning level to avoid confusion.

If I remember correctly, this happens much more often on an emulator than it does a device, and I believe the only consequence is you miss an ad refresh.

Eric

On Monday, June 18, 2012 4:13:22 PM UTC-7, RichardC wrote:
I am seeing quite a few of the following reports in LogCat; it happens about 50% of the time when I rotate the screen in the emulator.

06-05 20:15:28.678: E/Ads(1855): An error occurred while loading data in AdWebView:
06-05 20:15:28.678: E/Ads(1855): java.lang.NullPointerException
06-05 20:15:28.678: E/Ads(1855): at android.webkit.WebView.loadDataWithBaseURL(WebView.java:1626)
06-05 20:15:28.678: E/Ads(1855): at com.google.ads.internal.AdWebView.loadDataWithBaseURL(SourceFile:207)
06-05 20:15:28.678: E/Ads(1855): at com.google.ads.internal.c$c.run(SourceFile:150)
06-05 20:15:28.678: E/Ads(1855): at android.os.Handler.handleCallback(Handler.java:587)
06-05 20:15:28.678: E/Ads(1855): at android.os.Handler.dispatchMessage(Handler.java:92)
06-05 20:15:28.678: E/Ads(1855): at android.os.Looper.loop(Looper.java:123)
06-05 20:15:28.678: E/Ads(1855): at android.app.ActivityThread.main(ActivityThread.java:4627)
06-05 20:15:28.678: E/Ads(1855): at java.lang.reflect.Method.invokeNative(Native Method)
06-05 20:15:28.678: E/Ads(1855): at java.lang.reflect.Method.invoke(Method.java:521)
06-05 20:15:28.678: E/Ads(1855): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
06-05 20:15:28.678: E/Ads(1855): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
06-05 20:15:28.678: E/Ads(1855): at dalvik.system.NativeStart.main(Native Method)

My application is NOT crashing so I guess the exception is being caught and logged.

My application is a skeleton test app. I create the AdView in code in MyActivity.onCreate() and add it to a LinearLayout. I am calling adView.destory() in MyActivity.onDestroy().

Emulator running Android 2.2
Google AdMob SDK 6.0.1
Android SDK 4.0.3 (L15)

Reply all
Reply to author
Forward
0 new messages