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

Fix for #1141 - SpecFilter.filterDefinitions() throwing NPE #1142

Merged
merged 3 commits into from
Jul 9, 2015

Conversation

csuich2
Copy link

@csuich2 csuich2 commented Jun 8, 2015

See #1141

}
}
}
Model clonedModel = (Model) definition.clone();
clonedModel.getProperties().clear();
if (clonedModel.getProperties() != null) clonedModel.getProperties().clear();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Based on our coding guidelines can you turn the ifstatement to a blocked one?

@csuich2
Copy link
Author

csuich2 commented Jul 9, 2015

@webron Thanks, Ron. I just updated the PR per the style guidlines.

@webron
Copy link
Contributor

webron commented Jul 9, 2015

Great, thanks!

webron added a commit that referenced this pull request Jul 9, 2015
Fix for #1141 - SpecFilter.filterDefinitions() throwing NPE
@webron webron merged commit 88495e7 into swagger-api:develop_2.0 Jul 9, 2015
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

Successfully merging this pull request may close these issues.

2 participants