Application Crashing

@mark-piller Hi, I am having this issue too on Android. After debugging, it looks like that Backendless is returning a lot of nulls (which first of all shouldn’t be the case), but the Backendless Android SDK is not handling this properly.

See this. Firebase registration fails, and the SDK tries to get a intValue (I guess a token or id or something), but it is null and the app crashes:

Another issue I keep finding, after logging in the BackendlessUser is like a blank object with none of the default values that I’ve set in my user schema. This means when I try to get a value out of the user object (which should always have values because defaults were set in the data table), I get a crash as there is a NullPointerException:

In general, a lot of responses from Backendless’ SDK are now returning dirty or incorrect data, which seems the SDK itself is not prepared to accept. Whether the response is empty, or the response has incorrect data. I can go on and list more examples if you want, but all I know is everything worked fine yesterday. Today, everything is crashing.

2 Likes

Here’s another example, just a simple getObjectCount for a data table’s items returns null. I would hope even if they couldn’t find any matches, the count would be 0 and not null. There has been some regression for sure.

1 Like

Hello @Jeffrey_Sera @Pranav_Patel

Which version of the SDK are you using?

Regards,
Inna

6.3.2

6.1.2

@Inna_Shkolnaya I believe this has happened to me before. Please see this thread: [Critical] App crashing when connecting to Backendless because server returns null

Could be a very similar root cause.

1 Like

I think its working properly now. Other users still testing the application but it seems to be working properly now. Could you please mention the reason for the error? (just so that I can communicate it properly with the backendless team in future, if further such incidents happen)

Thanks.

@Jeffrey_Sera Is your problem still reproducing now?

@Pranav_Patel our specialists are still working to ensure that the error does not occur again. We will report on the reasons for the failure at a later date.

Regards,
Inna

Same problem again.

1 Like

Does it happen right now? Or did it happen about 30 minutes ago?

Yes started like 30 min ago.

Started 30 mins ago but still happening. Apps crashing.

1 Like

Do you have any information related to the crash?

Hi Mark,

Its the similar one that I faced few days back. The login response is coming back as null.

Thanks

1 Like

Please create a small app that strictly demonstrates the issue with the login API.

We’re not seeing any issues with the API as you report, however, if you provide a small app that reproduces the issue, we will be happy to look into it.

Hi @mark-piller , I seem to have a very similar issue. I had a problem end of last week when I was away and users are now reporting problems using the app from about an hour ago. When looking at the debugger I am too getting null objects when I should be getting a BackendlessUser. Hope this helps.

1 Like

Hi Mike,

I just ran a test where I log in a user and am getting BackendlessUser back. We really need a sample that reproduces the issue. Can you help with a sample, please?

Regards,
Mark

it’s behaving strangely!

But, It looks like if I call this. (Android)
if (Backendless.UserService.isValidLogin()) {

I get a null pointer crash with this message
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method ‘boolean java.lang.Boolean.booleanValue()’ on a null object reference
at com.backendless.UserService.isValidLogin(UserService.java:970)

2 Likes

What version of the Backendless SDK for Android are you using?

I am using 6.3.2