Changeset 2959 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2010-02-09T23:31:41+01:00 (15 years ago)
Author:
Gubaer
Message:

fixed #4432: NullPointerException in history panel

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/history/VersionTableCellRenderer.java

    r2512 r2959  
    135135
    136136    public void renderVersionFromHistory(HistoryOsmPrimitive primitive, JTable table, int row, boolean isSelected) {
    137         renderIcon(primitive.getType());
     137        renderIcon(primitive == null? null : primitive.getType());
    138138        renderText(primitive);
    139139        renderBackground(table, row, isSelected);
Note: See TracChangeset for help on using the changeset viewer.