Advanced_Android_Development
Advanced_Android_Development copied to clipboard
NullPointerException in MyGcmListenerService
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.
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