[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

@@ -341,7 +341,8 @@ public class VenstarThermostatHandler extends ConfigStatusThingHandler {
}
} catch (VenstarCommunicationException | JsonSyntaxException e) {
log.debug("Unable to fetch info data", e);
goOffline(ThingStatusDetail.COMMUNICATION_ERROR, e.getMessage());
String message = e.getMessage();
goOffline(ThingStatusDetail.COMMUNICATION_ERROR, message != null ? message : "");
} catch (VenstarAuthenticationException e) {
goOffline(ThingStatusDetail.CONFIGURATION_ERROR, "Authorization Failed");
}
@@ -376,7 +377,8 @@ public class VenstarThermostatHandler extends ConfigStatusThingHandler {
goOnline();
} catch (VenstarCommunicationException | JsonSyntaxException e) {
log.debug("Unable to fetch info data", e);
goOffline(ThingStatusDetail.COMMUNICATION_ERROR, e.getMessage());
String message = e.getMessage();
goOffline(ThingStatusDetail.COMMUNICATION_ERROR, message != null ? message : "");
} catch (VenstarAuthenticationException e) {
goOffline(ThingStatusDetail.CONFIGURATION_ERROR, "Authorization Failed");
}