Skip to content

Commit

Permalink
[miio] avoid NPE when rssi is missing (#10854)
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
  • Loading branch information
marcelrv committed Jun 12, 2021
1 parent fc66615 commit 10f5ca8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public void setBssid(String bssid) {
}

public Long getRssi() {
if (rssi.isNumber()) {
if (rssi != null && rssi.isNumber()) {
return rssi.getAsLong();
}
return null;
Expand Down

0 comments on commit 10f5ca8

Please sign in to comment.