Changeset 17255 in josm


Ignore:
Timestamp:
2020-10-22T22:44:28+02:00 (6 weeks ago)
Author:
GerdP
Message:

see #18527 changeset manager: content information of (closed) changeset lost when updating discussion
fix unit tests which call methods with null arguments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/dialogs/changeset/ChangesetCacheManager.java

    r17251 r17255  
    448448        @Override
    449449        public void valueChanged(ListSelectionEvent e) {
    450             if (!e.getValueIsAdjusting())
     450            if (e == null || !e.getValueIsAdjusting())
    451451                updateEnabledState();
    452452        }
     
    493493        @Override
    494494        public void valueChanged(ListSelectionEvent e) {
    495             if (!e.getValueIsAdjusting())
     495            if (e == null || !e.getValueIsAdjusting())
    496496                updateEnabledState();
    497497        }
     
    527527        @Override
    528528        public void valueChanged(ListSelectionEvent e) {
    529             if (!e.getValueIsAdjusting())
     529            if (e == null || !e.getValueIsAdjusting())
    530530                updateEnabledState();
    531531        }
     
    561561        @Override
    562562        public void valueChanged(ListSelectionEvent e) {
    563             if (!e.getValueIsAdjusting())
     563            if (e == null || !e.getValueIsAdjusting())
    564564                updateEnabledState();
    565565        }
     
    601601        @Override
    602602        public void valueChanged(ListSelectionEvent e) {
    603             if (!e.getValueIsAdjusting())
     603            if (e == null || !e.getValueIsAdjusting())
    604604                updateEnabledState();
    605605        }
     
    695695        @Override
    696696        public void valueChanged(ListSelectionEvent e) {
    697             if (e.getValueIsAdjusting())
     697            if (e != null && e.getValueIsAdjusting())
    698698                return;
    699699
Note: See TracChangeset for help on using the changeset viewer.