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

[KARAF-5315] Synchronize lock methods #374

Merged
merged 1 commit into from Sep 19, 2017
Merged

Conversation

jbonofre
Copy link
Member

No description provided.

@jbonofre
Copy link
Member Author

retest this please

rc = lock;
}
return rc;
return validateDirectoryExists(lock.getPath(), "Invalid" + PROPERTY_LOCK_DIR + " system property");
Copy link
Contributor

Choose a reason for hiding this comment

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

I think the code behaves differently if {{PROPERTY_LOCK_DIR}} is not set.
Previously, it would default to {{KARAF_BASE}}, now it returns null and will certainly cause a NPE in the constructor.

Copy link
Member Author

Choose a reason for hiding this comment

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

Good point, let me change this part and keep the sync on the methods.

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks !

@jbonofre
Copy link
Member Author

Squashed the commits. Waiting the end of Jenkins before merging.

@jbonofre
Copy link
Member Author

retest this please

@asfgit asfgit merged commit 5761abf into apache:master Sep 19, 2017
asfgit pushed a commit that referenced this pull request Sep 19, 2017
@jbonofre jbonofre deleted the KARAF-5315 branch September 19, 2017 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants