question

brewin avatar image
brewin asked

NullPointerException in 5.0.2

I just got this while testing. 06-18 14:14:30.321: ERROR/AndroidRuntime(7926): FATAL EXCEPTION: AsyncTask #5 java.lang.RuntimeException: An error occured while executing doInBackground() at android.os.AsyncTask$3.done(AsyncTask.java:200) at java.util.concurrent.FutureTask$Sync.innerSetException(FutureTask.java:274) at java.util.concurrent.FutureTask.setException(FutureTask.java:125) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:308) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1088) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:581) at java.lang.Thread.run(Thread.java:1019) Caused by: java.lang.NullPointerException at com.amazon.device.ads.AdLoader.fetchAd(AdLoader.java:131) at com.amazon.device.ads.AdLoader$AdFetcherTask.doInBackground(AdLoader.java:367) at com.amazon.device.ads.AdLoader$AdFetcherTask.doInBackground(AdLoader.java:360) at android.os.AsyncTask$2.call(AsyncTask.java:185) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:306) ... 4 more
mobile ads
10 |5000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Sujoy@Amazon avatar image
Sujoy@Amazon answered
Hi Brewin, Thank you for posting. Are you running SimpleAdSample provided with the Ad sdk zip? Or you have written it on your own? Have you followed everything documented in the below link? https://developer.amazon.com/sdk/mobileads/quick-start.html
10 |5000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.