Skip to content

Commit 9706ead

Browse files
committed
Builtins command registry: Add null check for configpath parameter
1 parent 1cf2cda commit 9706ead

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

console/src/main/java/org/jline/console/impl/Builtins.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2002-2020, the original author or authors.
2+
* Copyright (c) 2002-2022, the original author or authors.
33
*
44
* This software is distributable under the BSD license. See the terms of the
55
* BSD license in the documentation provided with this software.
@@ -74,6 +74,7 @@ public Builtins(Supplier<Path> workDir, ConfigurationPath configPath, Function<S
7474

7575
public Builtins(Set<Command> commands, Supplier<Path> workDir, ConfigurationPath configpath, Function<String, Widget> widgetCreator) {
7676
super();
77+
Objects.requireNonNull(configpath);
7778
this.configPath = configpath;
7879
this.widgetCreator = widgetCreator;
7980
this.workDir = workDir;

0 commit comments

Comments
 (0)