Changeset 18561 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2022-09-26T17:11:33+02:00 (22 months ago)
Author:
taylor.smock
Message:

See #22183: NoClassDefFoundError: Could not initialize class org.openstreetmap.josm.actions.SessionSave...

Add check after the setting of contentPanePrivate to figure out why it might be null.

File:
1 edited

Legend:

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

    r18493 r18561  
    857857            contentPanePrivate = (JComponent) contentPane;
    858858        }
     859        // This should never happen, but it does. See #22183.
     860        // Hopefully this code block will be temporary until we figure out what is actually going on.
     861        if (!GraphicsEnvironment.isHeadless() && contentPanePrivate == null) {
     862            throw new JosmRuntimeException("MainFrame contentPane is " + (contentPane == null ? "null" : contentPane.getClass().getName()));
     863        }
    859864        mainPanel = mainFrame.getPanel();
    860865
Note: See TracChangeset for help on using the changeset viewer.