NPE in Handling Push Service Registration

Hi there,
I am receiving some in a while NPE with this stacktrace:


at com.backendless.push.BackendlessPushService.handleRegistration (

at com.backendless.push.BackendlessPushService.handleIntent (

at com.backendless.push.BackendlessPushService.onHandleIntent (

non-project frames

at$ServiceHandler.handleMessage (

at android.os.Handler.dispatchMessage ( android.os.Looper.loop (

at (

Looking into the library that ->

if( error.equals( GCMConstants.ERROR_SERVICE_NOT_AVAILABLE ) )

And the only previous interaction with “error” variable is:

private void handleRegistration( final Context context, Intent intent )
 String registrationId = intent.getStringExtra( GCMConstants.EXTRA_REGISTRATION_ID );
 String error = intent.getStringExtra( GCMConstants.EXTRA_ERROR );

So it seems that sometimes (for any reason) the intent does not contain any String error, this becomes null and so it produces the npe.
Since this is inside the library, any ideas about workaround to avoid these breaks?

What version of sdk, do you use?


I’m using Backendless 3 and my app ID: 2C218174-5C8D-CC02-FFDA-271D3F676400

you should use 3.1.0

Ok I’ll give it a try to see what happens.
Where can I see the update notes between versions Sergey?

here it is release history for 4.0

Please keep in mind that the free plan in Backendless 3.x will be discontinued on November 1st 2017. Unless you plan to migrate to a paid plan in 3.x, I recommend switching to version 4.0

Thanks for the tips Sergey.