[infrastructure] add external null-annotations (#8848)

Signed-off-by: Jan N. Klug <jan.n.klug@rub.de>
This commit is contained in:
J-N-K
2020-10-31 00:29:03 +01:00
committed by GitHub
parent 47d05055db
commit bd664ff0c8
162 changed files with 933 additions and 575 deletions

View File

@@ -47,9 +47,10 @@ public class CommunicationStatus {
public final String getMessage() {
Exception err = error;
String errMsg = err == null ? err.getMessage() : null;
String msg = getHttpCode().getMessage();
if (err != null && err.getMessage() != null && !err.getMessage().isEmpty()) {
return err.getMessage();
if (errMsg != null && !errMsg.isEmpty()) {
return errMsg;
} else if (msg != null && !msg.isEmpty()) {
return msg;
}