concordion / concordion-excel-extension

Allows Concordion specifications to be in Excel format rather than HTML
Other
9 stars 12 forks source link

FOR NULL EXCEL CELL NUll POINT ERROR #8

Closed yangjiebeijing closed 8 years ago

yangjiebeijing commented 8 years ago

org.concordion.ext.excel.conversion.cellcontent.DefaultStyleConverter

.... @Override public void process(Cell c, HTMLBuilder b) { StringBuilder out = new StringBuilder(); extractColourStyle(c, out); extractFontStyle(c, out); handleHiddenCells(c, out); if (out.length() > 0) { b.addAttribute("style", out.toString()); } } .... please,add like this protected void handleHiddenCells(Cell c, StringBuilder out) { if (c == null) { return; } if (isHiddenRow(c) || isHiddenColumn(c)) { out.append("display: none; "); } }

robmoffat commented 8 years ago

This is fixed in release 2.0.2 thanks for reporting.