mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-15 06:49:56 +00:00
bug5880/master: fixed getJsonParsedResponse so it can handle null status codes
This commit is contained in:
1 parent
216d2def65
commit
204f4e798a
1 file changed
+1
@@ -85,6 +85,7 @@ public class SecuredServerImpl implements SecuredServer {
|
||||
final int statusCode = response.getStatusLine().getStatusCode();
|
||||
Object jsonParseResult;
|
||||
if (statusCode == Response.Status.NO_CONTENT.getStatusCode()
|
||||
|| Response.Status.fromStatusCode(statusCode) == null
|
||||
|| Response.Status.fromStatusCode(statusCode).getFamily() != Family.SUCCESSFUL) {
|
||||
jsonParseResult = null;
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user