[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

@@ -264,7 +264,8 @@ public class YamahaBridgeHandler extends BaseBridgeHandler
onConnectivityError(e);
return;
} catch (ReceivedMessageParseException e) {
updateProperty(PROPERTY_MENU_ERROR, e.getMessage());
String message = e.getMessage();
updateProperty(PROPERTY_MENU_ERROR, message != null ? message : "");
// Some AVRs send unexpected responses. We log parser exceptions therefore.
logger.debug("Parse error!", e);
} finally {

View File

@@ -727,7 +727,8 @@ public class YamahaZoneThingHandler extends BaseThingHandler
logger.debug("State update error. Changing thing to offline", e);
updateStatus(ThingStatus.OFFLINE, ThingStatusDetail.CONFIGURATION_ERROR, e.getMessage());
} catch (ReceivedMessageParseException e) {
updateProperty(PROPERTY_LAST_PARSE_ERROR, e.getMessage());
String message = e.getMessage();
updateProperty(PROPERTY_LAST_PARSE_ERROR, message != null ? message : "");
// Some AVRs send unexpected responses. We log parser exceptions therefore.
logger.debug("Parse error!", e);
}