Changes between Initial Version and Version 1 of Ticket #22183, comment 43


Ignore:
Timestamp:
2022-09-26T16:54:07+02:00 (3 years ago)
Author:
taylor.smock

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #22183, comment 43

    initial v1  
    11NVM. I'm not seeing how that code is ever called prior to the setting of `contentPanePrivate`. So ''something'' is preventing us from setting the `contentPanePrivate`.
     2
     3EDIT: I think I might do the following to get more information:
     4{{{#!diff
     5Index: src/org/openstreetmap/josm/gui/MainApplication.java
     6===================================================================
     7diff --git a/src/org/openstreetmap/josm/gui/MainApplication.java b/src/org/openstreetmap/josm/gui/MainApplication.java
     8--- a/src/org/openstreetmap/josm/gui/MainApplication.java       (revision 18560)
     9+++ b/src/org/openstreetmap/josm/gui/MainApplication.java       (date 1664203835677)
     10@@ -856,6 +856,9 @@
     11         if (contentPane instanceof JComponent) {
     12             contentPanePrivate = (JComponent) contentPane;
     13         }
     14+        if (!GraphicsEnvironment.isHeadless() && contentPanePrivate == null) {
     15+            throw new JosmRuntimeException("MainFrame content pane is " + (contentPane == null ? "null" : contentPane.getClass().getName()));
     16+        }
     17         mainPanel = mainFrame.getPanel();
     18 
     19         if (args.hasOption(Option.LOAD_PREFERENCES)) {
     20}}}