NullPointerException at com.shephertz.app42.push.plugin.App42GCMService

0 votes

Hi, 

I have integrated the  UnityPushPlugin into my Unity project. The plugin is working great when my application is open.

The problem is, when  I`m getting a notification while my application is closed,  I get a NullPointerException and my application crashes. I`m using  the App42_Unity3D_SDK_3.3.1 DLL

Is there  a solution for this?

Here is the crash log:

 

05-06 07:36:36.764: E/AndroidRuntime(9799): FATAL EXCEPTION: IntentService[App42GCMService]
05-06 07:36:36.764: E/AndroidRuntime(9799): java.lang.Error: FATAL EXCEPTION [IntentService[App42GCMService]]
05-06 07:36:36.764: E/AndroidRuntime(9799): Unity version     : 4.6.4f1
05-06 07:36:36.764: E/AndroidRuntime(9799): Device model      : samsung GT-I9100
05-06 07:36:36.764: E/AndroidRuntime(9799): Device fingerprint: samsung/GT-I9100/GT-I9100:4.0.3/IML74K/XXLPQ:user/release-keys
05-06 07:36:36.764: E/AndroidRuntime(9799): Caused by: java.lang.NullPointerException: println needs a message
05-06 07:36:36.764: E/AndroidRuntime(9799): at android.util.Log.println_native(Native Method)
05-06 07:36:36.764: E/AndroidRuntime(9799): at android.util.Log.e(Log.java:231)
05-06 07:36:36.764: E/AndroidRuntime(9799): at com.shephertz.app42.push.plugin.App42GCMService.onHandleIntent(App42GCMService.java:97)
05-06 07:36:36.764: E/AndroidRuntime(9799): at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65)
05-06 07:36:36.764: E/AndroidRuntime(9799): at android.os.Handler.dispatchMessage(Handler.java:99)
05-06 07:36:36.764: E/AndroidRuntime(9799): at android.os.Looper.loop(Looper.java:137)
05-06 07:36:36.764: E/AndroidRuntime(9799): at android.os.HandlerThread.run(HandlerThread.java:60)
 

 

asked May 6, 2015 in App42 Cloud API-BaaS by gabor.gyorgy (16 points)
recategorized Aug 13, 2015 by sushil

1 Answer

+1 vote
 
Best answer

Hi Gabor,

             Thanks for writing to us.Please download updated Android library , and replace it in Assets\Plugins\Android folder of your unity sample project.

Let me know if it works.

Thanks

Vishnu Garg

answered May 6, 2015 by Vishnu Garg (674 points)
selected May 6, 2015 by gabor.gyorgy
Hi Vishnu,

Thank you for your prompt answer. You solved my problem :D

Thanks
Gabor
Always welcome in ShepHertz.
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...