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
public STATUS getOnlineState(boolean failFast) throws IOException, ExecutionException {
switch(this.state) {
if(state == null) {
return STATUS.UNKNOWN;
}
switch(state) {
case ONLINE:
case RECORDING:
return ctbrec.Model.STATUS.ONLINE;