farhan678 / adwhirl

Automatically exported from code.google.com/p/adwhirl
0 stars 0 forks source link

[version 3.1.1] NullPointerException at AdWhirlLayout.rotateThreadedDelayed(AdWhirlLayout.java:246) #281

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. I re-install my android application using Eclipse.
2. It configured AdWhirl using AdWhirlAdapter.setGoogleAdSenseAppName(... 
before it loads a view that contains an AdWhirlLayout.
3. I received a null pointer exception right away when my application gets 
launched.

What is the expected output? What do you see instead?
It shall not give me a null pointer exception.

What version of the product are you using? On what operating system?
I have AdWhirlSDK_Android_3.1.1.jar

Please provide any additional information below.

01-26 21:46:25.592: E/AdWhirl SDK(26500): nextRation is null!
01-26 21:46:25.592: W/dalvikvm(26500): threadid=1: thread exiting with uncaught 
exception (group=0x4001d7e0)
01-26 21:46:25.616: E/AndroidRuntime(26500): FATAL EXCEPTION: main
01-26 21:46:25.616: E/AndroidRuntime(26500): java.lang.NullPointerException
01-26 21:46:25.616: E/AndroidRuntime(26500):    at 
com.adwhirl.AdWhirlLayout.rotateThreadedDelayed(AdWhirlLayout.java:246)
01-26 21:46:25.616: E/AndroidRuntime(26500):    at 
com.adwhirl.AdWhirlLayout.handleAd(AdWhirlLayout.java:214)
01-26 21:46:25.616: E/AndroidRuntime(26500):    at 
com.adwhirl.AdWhirlLayout.access$300(AdWhirlLayout.java:53)
01-26 21:46:25.616: E/AndroidRuntime(26500):    at 
com.adwhirl.AdWhirlLayout$HandleAdRunnable.run(AdWhirlLayout.java:399)
01-26 21:46:25.616: E/AndroidRuntime(26500):    at 
android.os.Handler.handleCallback(Handler.java:587)
01-26 21:46:25.616: E/AndroidRuntime(26500):    at 
android.os.Handler.dispatchMessage(Handler.java:92)
01-26 21:46:25.616: E/AndroidRuntime(26500):    at 
android.os.Looper.loop(Looper.java:123)
01-26 21:46:25.616: E/AndroidRuntime(26500):    at 
android.app.ActivityThread.main(ActivityThread.java:4627)
01-26 21:46:25.616: E/AndroidRuntime(26500):    at 
java.lang.reflect.Method.invokeNative(Native Method)
01-26 21:46:25.616: E/AndroidRuntime(26500):    at 
java.lang.reflect.Method.invoke(Method.java:521)
01-26 21:46:25.616: E/AndroidRuntime(26500):    at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:858)
01-26 21:46:25.616: E/AndroidRuntime(26500):    at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
01-26 21:46:25.616: E/AndroidRuntime(26500):    at 
dalvik.system.NativeStart.main(Native Method)
01-26 21:46:25.803: W/AsyncLoader(26500): delegate.load() was canceled
01-26 21:46:30.241: I/Process(26500): Sending signal. PID: 26500 SIG: 9
01-26 21:52:48.577: W/WallpapersMain(26561): searchString = 
01-26 21:52:48.749: I/AdWhirl SDK(26561): Creating adWhirlManager...
01-26 21:52:48.749: W/WallpaperAdapterView(26561): loadCurrent() = 0
01-26 21:52:48.835: W/WallpaperAdapterView(26561): loadCurrent() = 0
01-26 21:52:48.866: I/AdWhirl SDK(26561): Finished creating adWhirlManager
01-26 21:52:49.038: I/AdWhirl SDK(26561): Stored config info not present or 
expired, fetching fresh data
01-26 21:52:49.733: I/AdWhirl SDK(26561): Rotating Ad
01-26 21:52:50.475: I/Ads(26561): To get test ads on this device, call 
adRequest.addTestDevice("6998BAFA5B43808F1C2457196BBB4A37");
01-26 21:52:51.124: W/WallpaperAdapterView(26561): loadCurrent() = 0
01-26 21:52:52.358: I/Ads(26561): adRequestUrlHtml: <html><head><script 
src="http://www.gstatic.com/afma/sdk-core-v40.js"></script><script>AFMA_buildAdU
RL({"preqs":0,"u_sd":1.5,"slotname":"a14dfad9d8a5427","u_w":320,"msid":"com.apps
ilicious.wallpapers","js":"afma-sdk-a-v4.1.0","isu":"6998BAFA5B43808F1C2457196BB
B4A37","format":"320x50_mb","net":"wi","app_name":"7.android.com.appsilicious.wa
llpapers","hl":"en","u_h":569,"u_audio":1,"u_so":"p"});</script></head><body></b
ody></html>
01-26 21:52:54.085: I/Ads(26561): Received ad url: <"url": 
"http://googleads.g.doubleclick.net:80/mads/gma?preqs=0&u_sd=1.5&slotname=a14dfa
d9d8a5427&u_w=320&msid=com.appsilicious.wallpapers&js=afma-sdk-a-v4.1.0&isu=6998
BAFA5B43808F1C2457196BBB4A37&format=320x50_mb&net=wi&app_name=7.android.com.apps
ilicious.wallpapers&hl=en&u_h=569&u_audio=1&u_so=p&output=html&region=mobile_app
&u_tz=480&ex=1&client_sdk=1&jsv=1", "afmaNotifyDt": "null">
01-26 21:52:54.874: W/webcore(26561): Can't get the viewWidth after the first 
layout
01-26 21:52:54.881: I/Ads(26561): onReceiveAd()

Original issue reported on code.google.com by lightboy...@gmail.com on 27 Jan 2012 at 6:23

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
This issue rarely happens.

Original comment by lightboy...@gmail.com on 27 Jan 2012 at 6:33

GoogleCodeExporter commented 9 years ago
By the way, I call this method below.

adWhirlLayout.rollover();

Original comment by lightboy...@gmail.com on 27 Jan 2012 at 6:48