Changeset 5207 in josm


Ignore:
Timestamp:
2012-04-30T01:08:34+02:00 (7 years ago)
Author:
Don-vip
Message:

fix #7631 - NPE when toggling dynamic buttons

File:
1 edited

Legend:

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

    r5031 r5207  
    666666        buttonHiding = val;
    667667        PROP_BUTTON_HIDING.put(val);
    668         buttonsHide.setIcon(ImageProvider.get("misc", val != ButtonHiddingType.ALWAYS_SHOWN ? "buttonhide" : "buttonshow"));
     668        if (buttonsHide != null) {
     669            buttonsHide.setIcon(ImageProvider.get("misc", val != ButtonHiddingType.ALWAYS_SHOWN ? "buttonhide" : "buttonshow"));
     670        }
    669671        if (buttonsPanel != null) {
    670672            buttonsPanel.setVisible(val != ButtonHiddingType.ALWAYS_HIDDEN);
Note: See TracChangeset for help on using the changeset viewer.