Changeset 13483 in josm


Ignore:
Timestamp:
2018-03-02T18:25:00+01:00 (14 months ago)
Author:
Don-vip
Message:

fix #16038 - NPE

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/tagging/presets/items/ComboMultiSelect.java

    r13206 r13483  
    112112        public Component getListCellRendererComponent(JList<? extends PresetListEntry> list, PresetListEntry item, int index,
    113113                boolean isSelected, boolean cellHasFocus) {
     114
     115            if (list == null || item == null) {
     116                return lbl;
     117            }
    114118
    115119            // Only return cached size, item is not shown
Note: See TracChangeset for help on using the changeset viewer.