Changeset 13014 in josm for trunk


Ignore:
Timestamp:
2017-10-17T21:13:25+02:00 (7 years ago)
Author:
Don-vip
Message:

fix #15444 - NPE

File:
1 edited

Legend:

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

    r12871 r13014  
    116116        final BasicArrowButton arrowButton = new BasicArrowButton(BasicArrowButton.SOUTH);
    117117        arrowButton.addActionListener(action -> {
    118             final OpenChangesetPopupMenu popupMenu = new OpenChangesetPopupMenu(changesetDialogAction.id);
    119             popupMenu.insert(changesetDialogAction, 0);
    120             ((AbstractButton) popupMenu.getComponent(0)).setText(tr("Open Changeset Manager"));
    121             popupMenu.show(arrowButton);
     118            if (changesetDialogAction != null) { // fix #15444
     119                final OpenChangesetPopupMenu popupMenu = new OpenChangesetPopupMenu(changesetDialogAction.id);
     120                popupMenu.insert(changesetDialogAction, 0);
     121                ((AbstractButton) popupMenu.getComponent(0)).setText(tr("Open Changeset Manager"));
     122                popupMenu.show(arrowButton);
     123            }
    122124        });
    123125        changesetPanel.add(arrowButton, BorderLayout.EAST);
Note: See TracChangeset for help on using the changeset viewer.