Changeset 12133 in josm


Ignore:
Timestamp:
2017-05-13T01:44:23+02:00 (3 years ago)
Author:
Don-vip
Message:

see #14741 - findbugs

File:
1 edited

Legend:

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

    r12128 r12133  
    315315                !args.hasOption(Option.NO_MAXIMIZE) && Main.pref.getBoolean("gui.maximized", false));
    316316        final MainFrame mainFrame = new MainFrame(geometry);
    317         Main.contentPanePrivate = (JComponent) mainFrame.getContentPane();
     317        if (mainFrame.getContentPane() instanceof JComponent) {
     318            Main.contentPanePrivate = (JComponent) mainFrame.getContentPane();
     319        }
    318320        Main.mainPanel = mainFrame.getPanel();
    319321        Main.parent = mainFrame;
Note: See TracChangeset for help on using the changeset viewer.