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 optional array #20

Closed
UshakovVasilii opened this issue Oct 23, 2016 · 1 comment
Closed

NPE optional array #20

UshakovVasilii opened this issue Oct 23, 2016 · 1 comment
Labels
Milestone

Comments

@UshakovVasilii
Copy link

RS file:

! version = 2.0

+ [(a|b) ](c|d)
- <star2>

input c

java.lang.NullPointerException
    at com.rivescript.Util.Sv2s(Util.java:52) ~[rivescript-core-0.7.0-SNAPSHOT.jar:?]
    at com.rivescript.RiveScript.processTags(RiveScript.java:1690) ~[rivescript-core-0.7.0-SNAPSHOT.jar:?]
    at com.rivescript.RiveScript.reply(RiveScript.java:1511) ~[rivescript-core-0.7.0-SNAPSHOT.jar:?]
    at com.rivescript.RiveScript.reply(RiveScript.java:1062) ~[rivescript-core-0.7.0-SNAPSHOT.jar:?]
@kirsle kirsle added the bug label Oct 24, 2016
@marceloverdijk marceloverdijk modified the milestones: 0.8.0, 0.7.1 Dec 23, 2016
marceloverdijk pushed a commit that referenced this issue Jan 5, 2017
@marceloverdijk
Copy link
Member

Instead of adding a null star to the array, we now add an empty String "".

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

No branches or pull requests

3 participants