Seb777
(Seb)
March 25, 2023, 3:09pm
1
Hello,
In the last version of the java/android sdk the property backendlessFault of the class BackendlessException is not always instantiated. As a result the following method of BackendlessException throws an exception in some cases:
@Override
public String getMessage()
{
final String message = backendlessFault.getMessage();
return message == null ? backendlessFault.getDetail() : message;
}
Thank you
Hello @Seb777
Are you using SDK version 7.0.0?
Could you send the minimum reproducible code with this problem?
Regards,
Inna
Seb777
(Seb)
March 28, 2023, 9:30am
3
Hello @Inna_Shkolnaya ,
I’m using version 6.3.6
But on your github repository (Android-SDK/BackendlessException.java at master · Backendless/Android-SDK · GitHub ) I see the same problem. These two constructors don’t instantiate the property backendlessFault
public BackendlessException( String message, Throwable throwable )
{
super(message, throwable);
}
public BackendlessException( String message, Throwable throwable, int httpStatusCode )
{
this(message, throwable);
this.httpStatusCode = httpStatusCode;
}
To reproduce the problem, use one of these constructors and call the method “getMessage”.
Thank you very much.
Regards,
Seb
Hi. Thanks for your post. We’ll fix it in a next release of SDK.
By the way, recently we switched to the new branch of sdk. Please look at it.
Information about the releases:
All backendless packages:
Or directly for Android:
Discover android-client-sdk in the com.backendless namespace. Explore metadata, contributors, the Maven POM file, and more.
@Seb777
The new release (with the fix) of SDK is here.