diff --git a/src/main/java/edu/harvard/dbmi/avillach/dictionary/legacysearch/MetadataResultSetUtil.java b/src/main/java/edu/harvard/dbmi/avillach/dictionary/legacysearch/MetadataResultSetUtil.java index bc8eea2..8d3b367 100644 --- a/src/main/java/edu/harvard/dbmi/avillach/dictionary/legacysearch/MetadataResultSetUtil.java +++ b/src/main/java/edu/harvard/dbmi/avillach/dictionary/legacysearch/MetadataResultSetUtil.java @@ -96,14 +96,14 @@ private static String bytesToHex(byte[] hash) { } private String getParentDisplay(ResultSet rs) throws SQLException { - return StringUtils.hasLength("parentDisplay") ? "" : rs.getString("parentDisplay"); + return StringUtils.hasLength("parentDisplay") ? rs.getString("parentDisplay") : ""; } private String getParentName(ResultSet rs) throws SQLException { - return StringUtils.hasLength(rs.getString("parentName")) ? "All Variables" : rs.getString("parentName"); + return StringUtils.hasLength(rs.getString("parentName")) ? rs.getString("parentName") : "All Variables"; } private String getDescription(ResultSet rs) throws SQLException { - return StringUtils.hasLength(rs.getString("description")) ? "" : rs.getString("description"); + return StringUtils.hasLength(rs.getString("description")) ? rs.getString("description") : ""; } }