Ignore:
Timestamp:
2021-04-11T09:52:08+02:00 (3 years ago)
Author:
simon04
Message:

see #16163 - Fix NPE in unit tests

File:
1 edited

Legend:

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

    r17731 r17738  
    253253            requestFocusToDefaultButton();
    254254        }
    255         applyComponentOrientation(MainApplication.getMainFrame().getComponentOrientation());
     255        if (MainApplication.getMainFrame() != null) {
     256            applyComponentOrientation(MainApplication.getMainFrame().getComponentOrientation());
     257        }
    256258        setVisible(true);
    257259        toggleSaveState();
Note: See TracChangeset for help on using the changeset viewer.