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

react/cmd/reactGen: crash when judge HasEquals #37

Open
lijianying10 opened this issue Jul 26, 2018 · 0 comments
Open

react/cmd/reactGen: crash when judge HasEquals #37

lijianying10 opened this issue Jul 26, 2018 · 0 comments

Comments

@lijianying10
Copy link
Contributor

ON

if m.Type.Results != nil && len(m.Type.Results.List) != 1 {

When m.Type.Results is nil the
rp := m.Type.Results.List[0]
will panic with nil pointer dereference.

Same bug on line:

if m.Type.Params != nil && len(m.Type.Params.List) != 1 {

if m.Type.Results != nil && len(m.Type.Results.List) != 1 {

@myitcv myitcv changed the title ReactGen crash when judge HasEquals react/cmd/reactGen crash when judge HasEquals Jul 26, 2018
@myitcv myitcv changed the title react/cmd/reactGen crash when judge HasEquals react/cmd/reactGen: crash when judge HasEquals Aug 26, 2018
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

1 participant