SDKBOX Youtube crashes sometimes with NullPointerException (Cocos2djs)

Facing a crash on some user devices with SDKBOX Youtube player. Below is the crash log as reported in the Google Play Console.

Works fine for me on my test devices but have had at least 15 crashes due to this over the last week.

Caused by: java.lang.NullPointerException:
at com.google.android.youtube.player.YouTubeStandalonePlayer.getReturnedInitializationResult (Unknown Source)
at com.sdkbox.plugin.PluginYoutube.onActivityResult (PluginYoutube.java:176)
at com.sdkbox.plugin.SDKBox.onActivityResult (SDKBox.java:163)
at org.cocos2dx.lib.Cocos2dxActivity.onActivityResult (Cocos2dxActivity.java:382)
at android.app.Activity.dispatchActivityResult (Activity.java:6867)
at android.app.ActivityThread.deliverResults (ActivityThread.java:4751)

What could be the problem?

thanks for your report. added a null pointer checking.

PluginYoutube.jar.zip (4.1 KB)

and it will release in next release.

Thanks a ton!