[ 
https://issues.apache.org/jira/browse/FELIX-5535?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15861294#comment-15861294
 ] 

ASF GitHub Bot commented on FELIX-5535:
---------------------------------------

GitHub user cschneider opened a pull request:

    https://github.com/apache/felix/pull/92

    [FELIX-5535] Fix ArrayIndexOutOfBoundsException

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/cschneider/felix FELIX-5535

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/felix/pull/92.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #92
    
----
commit 0f499685dd79660ea39b49aa0b4a116642a002df
Author: Christian Schneider <ch...@die-schneider.net>
Date:   2017-02-10T13:51:28Z

    [FELIX-5535] Fix ArrayIndexOutOfBoundsException

----


> ArrayIndexOutOfBoundsException when typing < or > in shell
> ----------------------------------------------------------
>
>                 Key: FELIX-5535
>                 URL: https://issues.apache.org/jira/browse/FELIX-5535
>             Project: Felix
>          Issue Type: Bug
>          Components: Gogo Runtime
>    Affects Versions: gogo.runtime-1.0.2
>            Reporter: Christian Schneider
>             Fix For: gogo.runtime-1.0.4
>
>
> 2017-02-10T14:40:44,145 | ERROR | Karaf local console user karaf | ShellUtil  
>                       | 43 - org.apache.karaf.shell.core - 4.1.1.SNAPSHOT | 
> Exception caught while executing command
> java.lang.ArrayIndexOutOfBoundsException: 1
>       at org.apache.felix.gogo.runtime.Token.charAt(Token.java:81) 
> [43:org.apache.karaf.shell.core:4.1.1.SNAPSHOT]
>       at java.util.regex.Pattern$Slice.match(Pattern.java:3969) [?:?]
>       at java.util.regex.Pattern$Ques.match(Pattern.java:4182) [?:?]
>       at java.util.regex.Pattern$Branch.match(Pattern.java:4604) [?:?]
>       at java.util.regex.Matcher.match(Matcher.java:1270) [?:?]
>       at java.util.regex.Matcher.matches(Matcher.java:604) [?:?]
>       at org.apache.felix.gogo.runtime.Tokenizer.next(Tokenizer.java:111) 
> [43:org.apache.karaf.shell.core:4.1.1.SNAPSHOT]
>       at org.apache.felix.gogo.runtime.Parser.next(Parser.java:284) 
> [43:org.apache.karaf.shell.core:4.1.1.SNAPSHOT]
>       at org.apache.felix.gogo.runtime.Parser.program(Parser.java:202) 
> [43:org.apache.karaf.shell.core:4.1.1.SNAPSHOT]
>       at 
> org.apache.felix.gogo.jline.Highlighter.highlight(Highlighter.java:58) 
> [43:org.apache.karaf.shell.core:4.1.1.SNAPSHOT]
>       at 
> org.jline.reader.impl.LineReaderImpl.getDisplayedBufferWithPrompts(LineReaderImpl.java:3263)
>  [50:org.jline:3.1.3]
>       at 
> org.jline.reader.impl.LineReaderImpl.redisplay(LineReaderImpl.java:3203) 
> [50:org.jline:3.1.3]
>       at 
> org.jline.reader.impl.LineReaderImpl.cleanup(LineReaderImpl.java:2180) 
> [50:org.jline:3.1.3]
>       at 
> org.jline.reader.impl.LineReaderImpl.readLine(LineReaderImpl.java:570) 
> [50:org.jline:3.1.3]
>       at 
> org.apache.karaf.shell.impl.console.ConsoleSessionImpl.run(ConsoleSessionImpl.java:332)
>  [43:org.apache.karaf.shell.core:4.1.1.SNAPSHOT]
>       at java.lang.Thread.run(Thread.java:745) [?:?]



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to