Changeset 13080 in josm


Ignore:
Timestamp:
2017-11-04T23:26:44+01:00 (6 years ago)
Author:
Don-vip
Message:

avoid HeadlessException in unit test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/tagging/presets/TaggingPresetReader.java

    r12649 r13080  
    377377                Logging.error(e);
    378378                Logging.error(source);
    379                 JOptionPane.showMessageDialog(
    380                         Main.parent,
    381                         "<html>" + tr("Error parsing {0}: ", source) + "<br><br><table width=600>" +
    382                                 Utils.escapeReservedCharactersHTML(e.getMessage()) + "</table></html>",
    383                         tr("Error"),
    384                         JOptionPane.ERROR_MESSAGE
    385                         );
     379                if (displayErrMsg) {
     380                    JOptionPane.showMessageDialog(
     381                            Main.parent,
     382                            "<html>" + tr("Error parsing {0}: ", source) + "<br><br><table width=600>" +
     383                                    Utils.escapeReservedCharactersHTML(e.getMessage()) + "</table></html>",
     384                            tr("Error"),
     385                            JOptionPane.ERROR_MESSAGE
     386                            );
     387                }
    386388            }
    387389        }
Note: See TracChangeset for help on using the changeset viewer.