[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

@@ -280,6 +280,10 @@ public abstract class PLCCommonHandler extends BaseThingHandler {
}
protected static String getBlockFromChannel(final @Nullable Channel channel) {
return channel == null ? NOT_SUPPORTED : channel.getProperties().get(BLOCK_PROPERTY);
if (channel == null) {
return NOT_SUPPORTED;
}
String block = channel.getProperties().get(BLOCK_PROPERTY);
return block == null ? NOT_SUPPORTED : block;
}
}