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-18451 - NPE in jvmmonitor code during initialization if no valid j... #285

Merged
merged 1 commit into from
Sep 29, 2014

Conversation

robstryker
Copy link
Member

...dk location is found

@@ -412,6 +412,9 @@ protected InputStream invokeHeapHisto(Object virtualMachine, boolean isLive)
* @return The error message or <tt>null</tt> if not found
*/
public String validateJdkRootDirectory(String jdkRootDirectory) {
if( jdkRootDirectory == null || jdkRootDirectory.isEmpty()) {
Copy link
Member

Choose a reason for hiding this comment

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

jdkRootDirectory.trim().isEmpty() is even better

@fbricon
Copy link
Member

fbricon commented Sep 29, 2014

+1 to apply, once trim added

…d jdk location is found

JBIDE-18451 - NPE in jvmmonitor code during initialization if no valid jdk location is found

JBIDE-18451 - added trim
@robstryker robstryker merged commit 88b4fd4 into jbosstools:jbosstools-4.2.x Sep 29, 2014
@robstryker robstryker deleted the JBIDE-18451 branch November 6, 2014 10:19
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

2 participants