Fix NPE in RecordingPreconditions

This commit is contained in:
0xb00bface 2023-12-30 12:23:53 +01:00
parent 93cafcbd2d
commit 3caefd6bb4
1 changed files with 1 additions and 1 deletions

View File

@ -121,7 +121,7 @@ public class RecordingPreconditions {
}
}
if (isForced || (lowestPrio < priority)) {
return Optional.of(lowest);
return Optional.ofNullable(lowest);
} else {
return Optional.empty();
}