diff --git a/main/src/com/google/refine/importers/WikitextImporter.java b/main/src/com/google/refine/importers/WikitextImporter.java index 93203aa0f..1106256b3 100644 --- a/main/src/com/google/refine/importers/WikitextImporter.java +++ b/main/src/com/google/refine/importers/WikitextImporter.java @@ -332,7 +332,7 @@ public class WikitextImporter extends TabularImportingParserBase { } // store the reference for later use - if (currentReference != null && currentReferenceName != "") { + if (currentReference != null && ! "".equals(currentReferenceName)) { namedReferences.put(currentReferenceName, currentReference); } }