We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6a80610 commit be9ac54Copy full SHA for be9ac54
1 file changed
src/main/java/technology/tabula/TextChunk.java
@@ -192,8 +192,13 @@ public static boolean allSameChar(List<TextChunk> textChunks) {
192
}
193
194
public static List<Line> groupByLines(List<TextChunk> textChunks) {
195
- float bbwidth = Rectangle.boundingBoxOf(textChunks).width;
196
List<Line> lines = new ArrayList<Line>();
+
197
+ if (textChunks.size() == 0) {
198
+ return lines;
199
+ }
200
201
+ float bbwidth = Rectangle.boundingBoxOf(textChunks).width;
202
203
Line l = new Line();
204
l.addTextChunk(textChunks.get(0));
0 commit comments