Skip to content

Commit

Permalink
Builtins command registry: Add null check for configpath parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
mattirn committed May 21, 2022
1 parent 1cf2cda commit 9706ead
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion console/src/main/java/org/jline/console/impl/Builtins.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2002-2020, the original author or authors.
* Copyright (c) 2002-2022, the original author or authors.
*
* This software is distributable under the BSD license. See the terms of the
* BSD license in the documentation provided with this software.
Expand Down Expand Up @@ -74,6 +74,7 @@ public Builtins(Supplier<Path> workDir, ConfigurationPath configPath, Function<S

public Builtins(Set<Command> commands, Supplier<Path> workDir, ConfigurationPath configpath, Function<String, Widget> widgetCreator) {
super();
Objects.requireNonNull(configpath);
this.configPath = configpath;
this.widgetCreator = widgetCreator;
this.workDir = workDir;
Expand Down

0 comments on commit 9706ead

Please sign in to comment.