Changeset 5325 in josm


Ignore:
Timestamp:
Jul 11, 2012 10:42:39 PM (11 months ago)
Author:
simon04
Message:

fix NPE bug introduced in r5322

File:
1 edited

Legend:

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

    r5322 r5325  
    765765        } 
    766766        add(data, BorderLayout.CENTER); 
    767         if (buttons != null && buttons.length > 0 && !buttons[0].isEmpty()) { 
     767        if (buttons != null && buttons.length > 0 && buttons[0] != null && !buttons[0].isEmpty()) { 
    768768            buttonsPanel = new JPanel(new GridLayout(buttons.length, 1)); 
    769769            for (Collection<SideButton> buttonRow : buttons) { 
Note: See TracChangeset for help on using the changeset viewer.