Changeset 15177 in josm for trunk/src/org


Ignore:
Timestamp:
2019-06-17T00:07:12+02:00 (5 years ago)
Author:
Don-vip
Message:

see #14208 - NPE

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/util/TableHelper.java

    r15176 r15177  
    2222        TableCellRenderer renderer = tableColumn.getHeaderRenderer();
    2323
    24         if (renderer == null) {
     24        if (renderer == null && tbl.getTableHeader() != null)
    2525            renderer = tbl.getTableHeader().getDefaultRenderer();
    26         }
     26
     27        if (renderer == null)
     28            return 0;
    2729
    2830        Component c = renderer.getTableCellRendererComponent(tbl, tableColumn.getHeaderValue(), false, false, -1, col);
Note: See TracChangeset for help on using the changeset viewer.