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:
parent
6b676f7513
commit
369bfffb2f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user