on master help sign in
fix null reference in DataFrame
commit0db7af802e4aee03668c54398300823c001d1645 authorAgentM <agentm@themactionfaction.com> dateMon 7 Jan 2019, 00:31 (8 years ago) parent2edb739
1 file changed+2−2
src/lib/ProjectM36/DataFrame.hs+2−2
src/lib/ProjectM36/DataFrame.hs+2−2
@@ -124,12 +124,12 @@ data DataFrameExpr = DataFrameExpr {
124124dataFrameAsHTML :: DataFrame -> T.Text
125125-- web browsers don't display tables with empty cells or empty headers, so we have to insert some placeholders- it's not technically the same, but looks as expected in the browser
126126dataFrameAsHTML df
127− | length (tuples df) == 1 && null (attributes df) = style <>
127+ | length (tuples df) == 1 && L.null (attributes df) = style <>
128128 tablestart <>
129129 "<tr><th></th></tr>" <>
130130 "<tr><td></td></tr>" <>
131131 tablefooter <> "</table>"
132− | null (tuples df) && null (attributes df) = style <>
132+ | L.null (tuples df) && L.null (attributes df) = style <>
133133 tablestart <>
134134 "<tr><th></th></tr>" <>
135135 tablefooter <>