Comments (13)
Git this bug too.
It seems (from source code) that action is null:
https://code.google.com/p/gcm/source/browse/gcm-client/src/com/google/android/gc
m/GCMBaseIntentService.java?r=3f8285f108caecf9ee040cdadda3a024b81f7e3e#194
This bug seems to happen on Android 4.x.x versions
Here's some datas: http://ge.tt/3CNt5Fl?c
Original comment by stermi
on 8 Jul 2013 at 3:23
from gcm.
You might get this if you extends the GCMBaseIntentService and call
super.onStartCommand(Intent, int int).
Original comment by [email protected]
on 22 Aug 2013 at 7:24
from gcm.
I also see these exceptions. GCMBaseIntentService is crashing. Can you please
add some protection to prevent this? Below is a sample. There is no call to
super.onStartCommand() in the app's subclass.
log: Sep 6, 2013 5:29:25 AM
SEVERE: uncaught:
Throwable occurred: java.lang.NullPointerException
at com.google.android.gcm.GCMBaseIntentService.onHandleIntent(SourceFile:194)
at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.os.HandlerThread.run(HandlerThread.java:60)
sys:
android.version: 4.1.2
brand/model: Verizon/SCH-I605
Original comment by [email protected]
on 6 Sep 2013 at 3:58
from gcm.
Yeah, My app get NPE also, any solution for this?
java.lang.NullPointerException
at
com.google.android.gcm.GCMBaseIntentService.onHandleIntent(GCMBaseIntentService.
java:194)
at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.os.HandlerThread.run(HandlerThread.java:60)
Original comment by [email protected]
on 7 Oct 2013 at 2:36
from gcm.
Comment on #1
Exception is thrown on line 194:
String action = intent.getAction();
This clearly indicate that intent itself is null and not an action.
Original comment by [email protected]
on 26 Mar 2014 at 4:01
from gcm.
got the same NPE on SCH-I535, android 4.3
Original comment by [email protected]
on 1 Apr 2014 at 1:57
from gcm.
I see this issue as well. Any resolutions ?
Original comment by [email protected]
on 1 Oct 2014 at 5:03
from gcm.
As a workaround you can add onStart method to your service:
@Override
public void onStart(Intent intent, int startId) {
if (intent != null) {
super.onStart(intent, startId);
}
}
Original comment by [email protected]
on 1 Oct 2014 at 9:57
from gcm.
This has been fixed in the new API.
from gcm.
@silvolu I am still getting this issue. what changes I need to do to fix this?
from gcm.
What version of the API are you using?
from gcm.
@kroikie how can i get the version of the API? this is my gradle inclusion though
compile 'com.google.android.gms:play-services-gcm:8.4.0'
from gcm.
Hi @Hemant0601. From your previous post you can see that you are using the version 8.4.0.
The latest version of the GCM library is:
compile 'com.google.android.gms:play-services-gcm:9.0.1'
Also you might want to check the new Firebase Cloud Messaging sdk:
https://firebase.google.com/docs/cloud-messaging/
This is a major update of the GCM library with new a integration with the Firebase platform.
from gcm.
Related Issues (20)
- Issue Regarding Notification Display. HOT 1
- com.google.android.gcm.server.Sender fix ip address for gcm push notification sender
- Not receiving notification on some Custom OS after reboot
- am not able to get notification in bar when app is opened
- Message.Builder().contentAvailable(true)
- GCM and Play Services GCM
- GCM Dry run gives mismatch http post response
- I am getting below error message, while connecting the gcm through proxy org.apache.http.client.ClientProtocolException
- java.lang.NullPointerException in com.google.android.gms.gcm.GcmListenerService.zzm
- GCM Not receiving push notification in Canada
- Delete
- GCM send calls are failing -Android https://android.googleapis.com/gcm/send (push notification) HOT 1
- Don't have new release with FCM update HOT 3
- UTF-8 support is not present on Server side FCM/GCM push HOT 1
- I forgot my email id from which, i have created GCM Sender id .any way to find email id
- Delay on GCM Push Notifications sent from salesforce server.
- How to know if the requests to GCM have stopped?
- It looks like the data is there, it is just parcelled. If you try to get a particular key/value it should show up. You can always do something like intent.getStringExtra("date") before logging the Intent to force its data to unparcel.
- Not allowed to bind to service Intent HOT 2
- Security Policy violation Binary Artifacts HOT 84
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gcm.