diff --git a/main/src/com/google/refine/importers/tree/TreeImportingParserBase.java b/main/src/com/google/refine/importers/tree/TreeImportingParserBase.java index 94cea7cd4..1f2cfb403 100644 --- a/main/src/com/google/refine/importers/tree/TreeImportingParserBase.java +++ b/main/src/com/google/refine/importers/tree/TreeImportingParserBase.java @@ -215,9 +215,9 @@ abstract public class TreeImportingParserBase extends ImportingParserBase { int filenameColumnIndex = -1; if (includeFileSources) { filenameColumnIndex = addFilenameColumn(project); + // If the column add fails for any reason, we'll end up overwriting data in the first column + assert filenameColumnIndex == 0; } - // If the column add fails for any reason, we'll end up overwriting data in the first column - assert filenameColumnIndex == 0; XmlImportUtilities.importTreeData(treeParser, project, recordPath, rootColumnGroup, limit2, new ImportParameters(trimStrings, storeEmptyStrings, guessCellValueTypes, includeFileSources,