Don't guess field widths unless we have at least 3 lines

- Investigation of #685 showed that single line files were being guessed
as fixed field width
This commit is contained in:
Tom Morris 2013-03-04 17:47:06 -05:00
parent 6b676f7513
commit 369bfffb2f

View File

@ -185,7 +185,7 @@ public class FixedWidthImporter extends TabularImportingParserBase {
}
}
if (counts != null) {
if (counts != null && lineCount > 2) {
List<Integer> widths = new ArrayList<Integer>();
int startIndex = 0;