Fix string check

This commit is contained in:
Graham Triggs 2017-09-18 16:20:07 +01:00
parent 9cb377d7f2
commit 959888534b

View file

@ -758,7 +758,7 @@ public class AddAssociatedConceptsPreprocessor extends
if(numberLabels == 1) { if(numberLabels == 1) {
String label = conceptSemanticTypeLabels[0]; String label = conceptSemanticTypeLabels[0];
String uri = getURIForSemanticTypeLabel(label); String uri = getURIForSemanticTypeLabel(label);
if(uri != "") { if(!StringUtils.isEmpty(uri)) {
String[] urisToAdd = new String[1]; String[] urisToAdd = new String[1];
urisToAdd[0] = uri; urisToAdd[0] = uri;
pseudoInputString = new StringBuilder(uri); pseudoInputString = new StringBuilder(uri);