TableContainer no longer displays 'null'

This commit is contained in:
Rsl1122 2019-03-31 15:05:17 +03:00
parent be0375c385
commit 0108050bb8

View File

@ -95,7 +95,7 @@ public class TableContainer {
Serializable value = row[i];
Formatter formatter = formatters[i];
body.append("<td").append(formatter != null ? " data-order=\"" + value + "\">" : ">");
body.append(formatter != null ? formatter.apply(value) : value);
body.append(formatter != null ? formatter.apply(value) : (value != null ? value : '-'));
}
body.append("</td>");
} catch (ClassCastException | ArrayIndexOutOfBoundsException e) {