This commit is contained in:
Timothy Bish 2017-09-11 12:08:20 -04:00
commit 4871feac98
2 changed files with 3 additions and 3 deletions

View File

@ -378,7 +378,7 @@ public class NetworkHealthCheck extends ActiveMQScheduledComponent {
String inputLine;
while ((inputLine = reader.readLine()) != null) {
if (error) {
ActiveMQUtilLogger.LOGGER.failedToReadFromStream(inputLine == null ? " " : inputLine);
ActiveMQUtilLogger.LOGGER.failedToReadFromStream(inputLine);
} else {
logger.trace(inputLine);
}

View File

@ -92,14 +92,14 @@ public class ActiveMQFilterPredicate<T> implements Predicate<T> {
private boolean equals(Object field, Object value) {
if (field == null) {
return (value.equals("") || value == null);
return (value == null || value.equals(""));
}
return field.toString().equals(value);
}
private boolean contains(Object field, Object value) {
if (field == null) {
return (value.equals("") || value == null);
return (value == null || value.equals(""));
}
return field.toString().contains(value.toString());
}