Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,9 @@ public void appendParagraph(final CharSequence paragraph) throws IOException {

@Override
public void appendTable(final TableDefinition rawTable) throws IOException {
if (rawTable == null) {
return;
}
final TableDefinition table = adjustTableFormat(rawTable);
// write the table
appendParagraph(table.caption());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -495,4 +495,10 @@ void testWriteColumnQueues() throws IOException {
final List<String> actual = IOUtils.readLines(new StringReader(sb.toString()));
assertEquals(expected, actual);
}

@Test
void testAppendTableNull() throws IOException {
underTest.appendTable(null);
assertEquals(0, sb.length());
}
}