No VideoClicks element causes java.lang.NullPointerException: uriString

118 views
Skip to first unread message

Michał Kisiel

unread,
May 29, 2014, 7:32:31 AM5/29/14
to ima...@googlegroups.com
Hello, we are trying to get this library working with ads without landing pages (means without VideoClicks tag), but it crashes in all cases:
a) No VideoClicks tag at all
b) VideoClicks with empty ClickThrough tag.


1) Which SDK are you using?

Android

2) What ad tag are you using in your request?

3) Are you able to reproduce this in the downloadable sample app or the ?

It happens in my app, but it doest in Sample App 1.6 too. I just changed the tag to mine.

4) What steps must we take to reproduce your issue?

a) Start sample application
b) Click Req. Ad
c) When ad is started, click Learn More >>
d) The app crashes due to NullPointerException:

05-29 13:29:12.306: E/AndroidRuntime(7539): FATAL EXCEPTION: main
05-29 13:29:12.306: E/AndroidRuntime(7539): java.lang.NullPointerException: uriString
05-29 13:29:12.306: E/AndroidRuntime(7539): at android.net.Uri$StringUri.<init>(Uri.java:464)
05-29 13:29:12.306: E/AndroidRuntime(7539): at android.net.Uri$StringUri.<init>(Uri.java:454)
05-29 13:29:12.306: E/AndroidRuntime(7539): at android.net.Uri.parse(Uri.java:426)
05-29 13:29:12.306: E/AndroidRuntime(7539): at com.google.ads.interactivemedia.v3.b.s.b(IMASDK:500)
05-29 13:29:12.306: E/AndroidRuntime(7539): at com.google.ads.interactivemedia.v3.b.h$a.b(IMASDK:149)
05-29 13:29:12.306: E/AndroidRuntime(7539): at com.google.ads.interactivemedia.v3.b.b.e$1.b(IMASDK:141)
05-29 13:29:12.306: E/AndroidRuntime(7539): at com.google.ads.interactivemedia.v3.b.b.a.a(IMASDK:112)
05-29 13:29:12.306: E/AndroidRuntime(7539): at com.google.ads.interactivemedia.v3.b.b.a$2.onClick(IMASDK:83)
05-29 13:29:12.306: E/AndroidRuntime(7539): at android.view.View.performClick(View.java:4262)
05-29 13:29:12.306: E/AndroidRuntime(7539): at android.view.View$PerformClick.run(View.java:17351)
05-29 13:29:12.306: E/AndroidRuntime(7539): at android.os.Handler.handleCallback(Handler.java:615)
05-29 13:29:12.306: E/AndroidRuntime(7539): at android.os.Handler.dispatchMessage(Handler.java:92)
05-29 13:29:12.306: E/AndroidRuntime(7539): at android.os.Looper.loop(Looper.java:137)
05-29 13:29:12.306: E/AndroidRuntime(7539): at android.app.ActivityThread.main(ActivityThread.java:4921)
05-29 13:29:12.306: E/AndroidRuntime(7539): at java.lang.reflect.Method.invokeNative(Native Method)
05-29 13:29:12.306: E/AndroidRuntime(7539): at java.lang.reflect.Method.invoke(Method.java:511)
05-29 13:29:12.306: E/AndroidRuntime(7539): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1038)
05-29 13:29:12.306: E/AndroidRuntime(7539): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:805)
05-29 13:29:12.306: E/AndroidRuntime(7539): at dalvik.system.NativeStart.main(Native Method)

Shawn Busolits (IMA SDK Team)

unread,
May 29, 2014, 12:20:03 PM5/29/14
to ima...@googlegroups.com
Hi Michal,

Thanks for reporting this issue. I'll relay this info to the rest of the team to see if we can put in a special case to handle empty or missing VideoClicks info.

Thanks,
Shawn Busolits
IMA SDK Team
Reply all
Reply to author
Forward
0 new messages