Changeset 1368 in josm for trunk/src


Ignore:
Timestamp:
2009-02-07T19:45:38+01:00 (16 years ago)
Author:
framm
Message:

fix NPE on relation editor with language != en and api 0.6 enabled

File:
1 edited

Legend:

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

    r1331 r1368  
    453453
    454454    private JButton createButton(String name, String iconName, String tooltip, int mnemonic, ActionListener actionListener) {
    455         JButton b = new JButton(tr(name), ImageProvider.get("dialogs", iconName));
     455        JButton b = new JButton((name == null) ? null : tr(name), ImageProvider.get("dialogs", iconName));
    456456        b.setActionCommand(name);
    457457        b.addActionListener(actionListener);
Note: See TracChangeset for help on using the changeset viewer.