[infrastructure] add external null-annotations (#8848)
Signed-off-by: Jan N. Klug <jan.n.klug@rub.de>
This commit is contained in:
@@ -200,7 +200,11 @@ public class HDPowerViewShadeHandler extends AbstractHubbedThingHandler {
|
||||
}
|
||||
|
||||
private int getShadeId() throws NumberFormatException {
|
||||
return Integer.parseInt(getConfigAs(HDPowerViewShadeConfiguration.class).id);
|
||||
String str = getConfigAs(HDPowerViewShadeConfiguration.class).id;
|
||||
if (str == null) {
|
||||
throw new NumberFormatException("null input string");
|
||||
}
|
||||
return Integer.parseInt(str);
|
||||
}
|
||||
|
||||
private void stopShade() {
|
||||
|
||||
Reference in New Issue
Block a user