Changeset 12012 in josm for trunk/src


Ignore:
Timestamp:
2017-04-28T00:36:24+02:00 (7 years ago)
Author:
Don-vip
Message:

fix HeadlessException seen in unit tests logs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/io/DownloadOpenChangesetsTask.java

    r11110 r12012  
    7878        }
    7979        if (changesets.isEmpty()) {
    80             JOptionPane.showMessageDialog(
    81                     Main.parent,
    82                     tr("There are no open changesets"),
    83                     tr("No open changesets"),
    84                     JOptionPane.INFORMATION_MESSAGE
    85             );
     80            if (!GraphicsEnvironment.isHeadless()) {
     81                JOptionPane.showMessageDialog(
     82                        Main.parent,
     83                        tr("There are no open changesets"),
     84                        tr("No open changesets"),
     85                        JOptionPane.INFORMATION_MESSAGE
     86                );
     87            }
    8688            return;
    8789        }
Note: See TracChangeset for help on using the changeset viewer.