forked from j62/ctbrec
1
0
Fork 0

Return UNKOWN, if state is null

This commit is contained in:
0xboobface 2018-12-05 20:59:51 +01:00
parent 00869315fb
commit 1970f08700
1 changed files with 5 additions and 1 deletions

View File

@ -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;