do not show null time

This commit is contained in:
Egor.Ushakov
2017-08-31 19:36:10 +03:00
parent a64dd72457
commit d46ad87285
@@ -209,7 +209,8 @@ public class OverheadView extends BorderLayoutPanel implements Disposable {
int column) {
if (value instanceof OverheadProducer) {
OverheadProducer overheadProducer = (OverheadProducer)value;
append(String.valueOf(myGetter.apply(overheadProducer)),
Long val = myGetter.apply(overheadProducer);
append(val != null ? String.valueOf(val) : "",
overheadProducer.isEnabled() ? SimpleTextAttributes.SIMPLE_CELL_ATTRIBUTES : SimpleTextAttributes.GRAYED_ATTRIBUTES);
}
}