Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IMA Sample App - NullPointerException #502

Open
joebridges opened this issue Jan 3, 2020 · 0 comments
Open

IMA Sample App - NullPointerException #502

joebridges opened this issue Jan 3, 2020 · 0 comments

Comments

@joebridges
Copy link

joebridges commented Jan 3, 2020

We are seeing a NullPointerExceptions in our crash monitoring tools. This is caused when the user presses the play button while a pre-roll is loading. This is also reproducible in the IMASampleApp.

Steps to reproduce -

  • Open Google IMA Sample App
  • Click "IMA Podded Pre-roll"
  • Before the pre-roll automatically starts playing click the play button
  • Observe crash
Process: com.ooyala.sample.IMASampleApp, PID: 10963
    java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.Context android.view.View.getContext()' on a null object reference
        at com.ooyala.android.imasdk.OoyalaIMAManager.prepareAdsLoader(OoyalaIMAManager.java:470)
        at com.ooyala.android.imasdk.OoyalaIMAManager.loadAds(OoyalaIMAManager.java:428)
        at com.ooyala.android.imasdk.OoyalaIMAManager.onAdModeEntered(OoyalaIMAManager.java:874)
        at com.ooyala.android.AdPluginManager.onAdModeEntered(AdPluginManager.java:186)
        at com.ooyala.android.OoyalaPlayerContextSwitcher.switchToAdMode(OoyalaPlayerContextSwitcher.java:275)
        at com.ooyala.android.OoyalaPlayerContextSwitcher.processAdModes(OoyalaPlayerContextSwitcher.java:172)
        at com.ooyala.android.OoyalaPlayerContextSwitcher.startVideoWorkflow(OoyalaPlayerContextSwitcher.java:61)
        at com.ooyala.android.OoyalaPlayer.onCurrentItemChangeComplete(OoyalaPlayer.java:966)
        at com.ooyala.android.OoyalaPlayer.lambda$null$0(OoyalaPlayer.java:688)
        at com.ooyala.android.-$$Lambda$OoyalaPlayer$csVy2oM9eFJ924t4oesqgOpwaFA.run(lambda)
        at android.os.Handler.handleCallback(Handler.java:836)
        at android.os.Handler.dispatchMessage(Handler.java:103)
        at android.os.Looper.loop(Looper.java:203)
        at android.app.ActivityThread.main(ActivityThread.java:6368)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1063)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:924)

Please can you advise on the possible cause of this and if there is a solution. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant