-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: fix NPE in CLI if not username supplied (#4312)
Fixes NPE when running the CLI with no arguments. Was throwing NPE on line: ```java if (!options.getUserName().isEmpty() && !options.isPasswordSet()) { ``` in Ksql.java, as `options.getUserName()` was returning `null`. Refactored so that username and password are never null, only empty. Also refactored so that server will default to `http://localhost:8088`, even if other params are supplied. Previously, it only defaulted to this if no params supplied.
- Loading branch information
1 parent
50b4c1c
commit 0b6da0b
Showing
3 changed files
with
137 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters