fix typo crash, fixes #406
This commit is contained in:
parent
54da0d24a3
commit
4ea8f23fc7
@ -34,6 +34,7 @@ import java.nio.file.Path;
|
|||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.Objects;
|
||||||
import java.util.function.Consumer;
|
import java.util.function.Consumer;
|
||||||
import java.util.function.Function;
|
import java.util.function.Function;
|
||||||
import java.util.regex.Matcher;
|
import java.util.regex.Matcher;
|
||||||
@ -237,7 +238,9 @@ public class SettingsUtil {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Object parse(ParserContext context, String raw) {
|
public Object parse(ParserContext context, String raw) {
|
||||||
return this.parser.apply(raw);
|
Object parsed = this.parser.apply(raw);
|
||||||
|
Objects.requireNonNull(parsed);
|
||||||
|
return parsed;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
x
Reference in New Issue
Block a user