From cfc0b95cd1a82c1f5cdbf75fcb35e2ce1c72a529 Mon Sep 17 00:00:00 2001 From: Antonin Delpeuch Date: Sat, 23 Sep 2017 23:13:18 +0100 Subject: [PATCH] Fix string comparison in Wikitext exporter --- main/src/com/google/refine/importers/WikitextImporter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } }