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

LineReader Bug (Open or Close Parenthesis) #859

Closed
irinaleo opened this issue Aug 23, 2023 · 0 comments
Closed

LineReader Bug (Open or Close Parenthesis) #859

irinaleo opened this issue Aug 23, 2023 · 0 comments
Milestone

Comments

@irinaleo
Copy link

irinaleo commented Aug 23, 2023

Hi,

I have an interactive shell using picocli-shell-jline3 as in this example.

When I run the example and type in an open or closed parenthesis, I get a Null Pointer Exception. Here is the stack trace coming from my main method when I read in the line: line = reader.readLine(prompt, rightPrompt, (MaskingCallback) null, null)

java.lang.NullPointerException at org.jline.console.impl.SystemRegistryImpl.commandDescription(SystemRegistryImpl.java:405) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:107) at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:323) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1268) at groovy.lang.MetaClassImpl.invokeMethodClosure(MetaClassImpl.java:1048) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1142) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1035) at groovy.lang.Closure.call(Closure.java:412) at org.codehaus.groovy.runtime.ConvertedClosure.invokeCustom(ConvertedClosure.java:50) at org.codehaus.groovy.runtime.ConversionHandler.invoke(ConversionHandler.java:110) at com.sun.proxy.$Proxy20.apply(Unknown Source) at org.jline.widget.TailTipWidgets$CommandDescriptions.evaluateCommandLine(TailTipWidgets.java:737) at org.jline.widget.TailTipWidgets$CommandDescriptions.evaluateCommandLine(TailTipWidgets.java:689) at org.jline.widget.TailTipWidgets.doTailTip(TailTipWidgets.java:262) at org.jline.widget.TailTipWidgets.tailtipInsert(TailTipWidgets.java:249) at org.jline.widget.Widgets$1.apply(Widgets.java:69) at org.jline.reader.impl.LineReaderImpl.readLine(LineReaderImpl.java:689) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at org.codehaus.groovy.runtime.callsite.PlainObjectMetaMethodSite.doInvoke(PlainObjectMetaMethodSite.java:43) at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSite.invoke(PojoMetaMethodSite.java:191) at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:56) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:166)

Is this a known bug?

@mattirn mattirn added this to the 3.23.1 milestone Aug 29, 2023
@gnodet gnodet modified the milestones: 3.23.1, 3.24.0 Oct 24, 2023
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

3 participants