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

NullpointerExceptions reported on Play Store #43

Closed
andersdp opened this issue Feb 27, 2017 · 1 comment
Closed

NullpointerExceptions reported on Play Store #43

andersdp opened this issue Feb 27, 2017 · 1 comment
Labels

Comments

@andersdp
Copy link

andersdp commented Feb 27, 2017

We've gotten support tickets on crashes related to push notifications but the only one we've seen ourselves is on Android 4.x devices where the app is completely shut down and then crashes when opening an push notification.

From the log on Play Store I get these two errors regarding goosh:

This one comes from Android 5.x - 7.x

java.lang.NullPointerException: Attempt to invoke virtual method 'void ti.goosh.TiGooshModule.sendMessage(java.lang.String, java.lang.Boolean)' on a null object reference
	at ti.goosh.IntentService.parseNotification(IntentService.java:130)
	at ti.goosh.IntentService.onMessageReceived(IntentService.java:54)
	at com.google.android.gms.gcm.GcmListenerService.zzq(Unknown Source)
	at com.google.android.gms.gcm.GcmListenerService.zzp(Unknown Source)
	at com.google.android.gms.gcm.GcmListenerService.zzo(Unknown Source)
	at com.google.android.gms.gcm.GcmListenerService.zza(Unknown Source)
	at com.google.android.gms.gcm.GcmListenerService$1.run(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
	at java.lang.Thread.run(Thread.java:818)

This one comes from Android 4.4

java.lang.NullPointerException
	at ti.goosh.IntentService.parseNotification(IntentService.java:130)
	at ti.goosh.IntentService.onMessageReceived(IntentService.java:54)
	at com.google.android.gms.gcm.GcmListenerService.zzq(Unknown Source)
	at com.google.android.gms.gcm.GcmListenerService.zzp(Unknown Source)
	at com.google.android.gms.gcm.GcmListenerService.zzo(Unknown Source)
	at com.google.android.gms.gcm.GcmListenerService.zza(Unknown Source)
	at com.google.android.gms.gcm.GcmListenerService$1.run(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
	at java.lang.Thread.run(Thread.java:841)

Are these known bugs?

We're using ti.goosh 1.6.2 with Titanium SDK 5.5.1

@kopiro kopiro added the bug label Feb 28, 2017
progress44 pushed a commit that referenced this issue Mar 23, 2017
@andersdp
Copy link
Author

Glad to see this fixed. However we have not yet moved on to SDK 6.x

Is it possible to get a version compiled for SDK 5.5.1 with this fix. It would be really great!

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

No branches or pull requests

3 participants