From cc7bb29944147fb36e7e76ac1c2fe8f470af4b13 Mon Sep 17 00:00:00 2001 From: Oliver <480930+rivo@users.noreply.github.com> Date: Sat, 13 Jan 2018 11:45:48 +0100 Subject: [PATCH] Avoiding access to nil pointer. --- table.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/table.go b/table.go index 33df390..20c5e1c 100644 --- a/table.go +++ b/table.go @@ -539,6 +539,9 @@ ColumnLoop: // Get the cell. cell := getCell(row, column) + if cell == nil { + continue + } // Determine colors. bgColor := t.backgroundColor