Changeset 35230 in osm for applications/editors/josm


Ignore:
Timestamp:
2019-11-13T23:26:28+01:00 (5 years ago)
Author:
donvip
Message:

fix #josm18320 - fix IAE

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/utilsplugin2/src/org/openstreetmap/josm/plugins/utilsplugin2/multitagger/MultiTagDialog.java

    r34455 r35230  
    284284        public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {
    285285            Component c = super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column);
    286             if (c instanceof JLabel) {
     286            if (c instanceof JLabel && value instanceof OsmPrimitiveType) {
    287287                ((JLabel) c).setIcon(ImageProvider.get((OsmPrimitiveType) value));
    288288                ((JLabel) c).setText("");
Note: See TracChangeset for help on using the changeset viewer.