Changeset 10099 in josm


Ignore:
Timestamp:
2016-04-02T17:15:57+02:00 (4 years ago)
Author:
Don-vip
Message:

fix HeadlessException in unit tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/preferences/imagery/ImageryPreference.java

    r10043 r10099  
    1010import java.awt.FlowLayout;
    1111import java.awt.Font;
     12import java.awt.GraphicsEnvironment;
    1213import java.awt.GridBagConstraints;
    1314import java.awt.GridBagLayout;
     
    160161        OffsetBookmark.saveBookmarks();
    161162
    162         DownloadDialog.getInstance().refreshTileSources();
     163        if (!GraphicsEnvironment.isHeadless()) {
     164            DownloadDialog.getInstance().refreshTileSources();
     165        }
    163166
    164167        boolean commonRestartRequired = commonSettings.saveSettings();
Note: See TracChangeset for help on using the changeset viewer.