Fix NPE in RecordingPreconditions
This commit is contained in:
parent
93cafcbd2d
commit
3caefd6bb4
|
@ -121,7 +121,7 @@ public class RecordingPreconditions {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (isForced || (lowestPrio < priority)) {
|
if (isForced || (lowestPrio < priority)) {
|
||||||
return Optional.of(lowest);
|
return Optional.ofNullable(lowest);
|
||||||
} else {
|
} else {
|
||||||
return Optional.empty();
|
return Optional.empty();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue