fix typo crash, fixes #406

This commit is contained in:
Leijurv 2019-05-01 12:22:47 -07:00
parent 54da0d24a3
commit 4ea8f23fc7
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A
1 changed files with 4 additions and 1 deletions

View File

@ -34,6 +34,7 @@ import java.nio.file.Path;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Objects;
import java.util.function.Consumer;
import java.util.function.Function;
import java.util.regex.Matcher;
@ -237,7 +238,9 @@ public class SettingsUtil {
@Override
public Object parse(ParserContext context, String raw) {
return this.parser.apply(raw);
Object parsed = this.parser.apply(raw);
Objects.requireNonNull(parsed);
return parsed;
}
@Override