Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NPE while printing null variables via !set #88

Closed
snuyanzin opened this issue Aug 7, 2018 · 1 comment
Closed

NPE while printing null variables via !set #88

snuyanzin opened this issue Aug 7, 2018 · 1 comment

Comments

@snuyanzin
Copy link
Collaborator

Run any line from

!set csvDelimiter null
!set historyFile null
!set isolation null
!set numberFormat null
!set outputFormat null

then just

!set

it fails

java.lang.NullPointerException
        at sqlline.SqlLineOpts.toProperties(SqlLineOpts.java:196)
        at sqlline.Commands.config(Commands.java:487)
        at sqlline.Commands.set(Commands.java:510)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.base/java.lang.reflect.Method.invoke(Unknown Source)
        at sqlline.ReflectiveCommandHandler.execute(ReflectiveCommandHandler.java:38)
        at sqlline.SqlLine.dispatch(SqlLine.java:792)
        at sqlline.SqlLine.begin(SqlLine.java:669)
        at sqlline.SqlLine.start(SqlLine.java:374)
        at sqlline.SqlLine.main(SqlLine.java:266)
@julianhyde
Copy link
Owner

Fixed in f705eea; thanks for PR #89, @snuyanzin!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants