question

Pedro avatar image
Pedro asked

Other NPE on Amazon Ads

Hello. Here is another NPE inside Amazon Ads module (Im using version .40 of the SDK). An ad provider should NEVER throw an exception and crash the main program. Catch all the possible exceptions: disable the Ads if you cant work around the exception, but DONT crash the main program, please. And NPEs are always avoidable. java.lang.NullPointerException: at com.amazon.device.ads.MraidAssets.getBaseFilePath(MraidAssets.java:92) at com.amazon.device.ads.MraidAssets. (MraidAssets.java:61) at com.amazon.device.ads.MraidAssets.getInstance(MraidAssets.java:68) at com.amazon.device.ads.AdController.ensureAssetsCreated(AdController.java:338) at com.amazon.device.ads.AdLoader.fetchAd(AdLoader.java:72) at com.amazon.device.ads.AdLoader$AdFetcherTask.doInBackground(AdLoader.java:390) at com.amazon.device.ads.AdLoader$AdFetcherTask.doInBackground(AdLoader.java:383)
mobile ads
10 |5000

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

Sujoy@Amazon avatar image
Sujoy@Amazon answered
Hi Pedro, Can you please provide us app details like app name or id where you are getting below NPE reported?
10 |5000

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

Pedro avatar image
Pedro answered
Thats not a common/recurring exception, from my logs it seems to have happened to only 3 users, but still thats something that should never happen. Is there an email I can send the info? I will send the full stack trace and app info.
10 |5000

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

Sujoy@Amazon avatar image
Sujoy@Amazon answered
I agree. Please write a ContactUs ( https://developer.amazon.com/help/contactus.html), and say there that you are told to provide the app information from this forum thread ( https://forums.developer.amazon.com/forums/thread.jspa?threadID=1488&tstart=0) .
10 |5000

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

Sujoy@Amazon avatar image
Sujoy@Amazon answered
We have identified the issue and planning to release it shortly. I will notify in this forum after we are done. Thanks.
10 |5000

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

Sujoy@Amazon avatar image
Sujoy@Amazon answered
Hi Pedro, Thanks for your patience. We've released Mobile Ads Android SDK v. 5.1.153 into production. It addresses this issue and can be downloaded at the Developer Portal: https://developer.amazon.com/sdk/mobileads.html
10 |5000

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