Changeset 10016 in josm


Ignore:
Timestamp:
2016-03-19T14:33:43+01:00 (4 years ago)
Author:
bastiK
Message:

fixed #12650 - Error when click on Imagery providers (see #6301)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/preferences/imagery/ImageryPreference.java

    r10000 r10016  
    277277                ImageryInfo info = (ImageryInfo) value;
    278278                JLabel label = (JLabel) super.getTableCellRendererComponent(
    279                         table, info.getName(), isSelected, hasFocus, row, column);
     279                        table, info == null ? null : info.getName(), isSelected, hasFocus, row, column);
    280280                GuiHelper.setBackgroundReadable(label, UIManager.getColor("Table.background"));
    281                 label.setToolTipText(info.getToolTipText());
     281                if (info != null) {
     282                    label.setToolTipText(info.getToolTipText());
     283                }
    282284                return label;
    283285            }
Note: See TracChangeset for help on using the changeset viewer.