Skip to content

Commit ea6be83

Browse files
author
Christophe Dirac
committed
Fix NPE: Return CompletableFuture, not null.
1 parent a5d9420 commit ea6be83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/beowulfe/hap/impl/characteristics/windowcovering/HoldPositionCharacteristic.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ protected void setValue(Boolean value) throws Exception {
2222
@Override
2323
protected CompletableFuture<Boolean> getValue() {
2424
//Write only
25-
return null;
25+
return CompletableFuture.completedFuture(null);
2626
}
2727

2828
}

0 commit comments

Comments
 (0)