Advanced_Android_Development icon indicating copy to clipboard operation
Advanced_Android_Development copied to clipboard

NullPointerException in MyGcmListenerService

Open singh-sarabjeet opened this issue 9 years ago • 1 comments

When the message is received from the server, the message is in a bundle which is converted to JSONObject. This process is creating a NullPointerException.

Instead of creating a JSONObject, we can extract the data directly from the the Bundle.

singh-sarabjeet avatar Jan 26 '17 18:01 singh-sarabjeet

i can fix it, let me know the file where the .java file is given, it occurs due to searching or asking object in an array (for example) which is not stored in the array, we need to look for the logic and find an error

theshreyashguy avatar Jan 05 '23 08:01 theshreyashguy