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

JBIDE-21718 Possible IllegalArgumentException in ServiceDetailViews.TemplateDetailView.onVisible #965

Closed
wants to merge 1 commit into from

Conversation

scabanovich
Copy link
Contributor

No description provided.

String labels = org.jboss.tools.openshift.common.core.utils.StringUtils.toString(service.getLabels());
if(labels != null) {
labelsText.setText(labels);
}
Copy link
Member

Choose a reason for hiding this comment

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

what if value is null? the text seems not to get reseted and would then still display the old value? shouldnt we reset it in this case?
Btw. org.apache.commons.lang.StringUtils.defaultString(string) returns an empty string if the input is null.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok, done.

@fbricon
Copy link
Member

fbricon commented Feb 19, 2016

applied in master/4.3.x. Thanks Slava!

@fbricon fbricon closed this Feb 19, 2016
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.

None yet

3 participants