forked from j62/ctbrec
Return UNKOWN, if state is null
This commit is contained in:
parent
00869315fb
commit
1970f08700
|
@ -71,7 +71,11 @@ public class MyFreeCamsModel extends AbstractModel {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public STATUS getOnlineState(boolean failFast) throws IOException, ExecutionException {
|
public STATUS getOnlineState(boolean failFast) throws IOException, ExecutionException {
|
||||||
switch(this.state) {
|
if(state == null) {
|
||||||
|
return STATUS.UNKNOWN;
|
||||||
|
}
|
||||||
|
|
||||||
|
switch(state) {
|
||||||
case ONLINE:
|
case ONLINE:
|
||||||
case RECORDING:
|
case RECORDING:
|
||||||
return ctbrec.Model.STATUS.ONLINE;
|
return ctbrec.Model.STATUS.ONLINE;
|
||||||
|
|
Loading…
Reference in New Issue