Changeset 5031 in josm for trunk


Ignore:
Timestamp:
2012-02-29T16:59:01+01:00 (8 years ago)
Author:
jttt
Message:

check for null (for toggle dialogs without side buttons)

File:
1 edited

Legend:

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

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