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

NMS-15768: Fixed scan-interval handling #6275

Merged
merged 2 commits into from
Jun 28, 2023
Merged

Conversation

christianpape
Copy link
Contributor

Copy link
Contributor

@RangerRick RangerRick left a comment

Choose a reason for hiding this comment

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

other than that, looks fine

@@ -57,10 +57,13 @@ public String marshal(final Duration v) {
/** {@inheritDoc} */
@Override
public Duration unmarshal(final String v) {
if ("0".equals(v)) {
if ("0".equals(v.trim())) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Could v ever be null? This would introduce an NPE if so...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

null-check added

@@ -39,10 +39,14 @@ public class StringIntervalPropertyEditor extends PropertyEditorSupport implemen
/** {@inheritDoc} */
@Override
public void setAsText(final String text) throws IllegalArgumentException {
if ("0".equals(text)) {
if ("0".equals(text.trim())) {
Copy link
Contributor

Choose a reason for hiding this comment

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

same here with text

Copy link
Contributor Author

Choose a reason for hiding this comment

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

null-check added

@christianpape christianpape merged commit d18e4bb into foundation-2023 Jun 28, 2023
4 checks passed
@christianpape christianpape deleted the jira/NMS-15768 branch June 28, 2023 08:28
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