Program: 11020
Project: 11020
Buggy source:
private Application(Theme theme,boolean showSplashScreen,boolean useNewt){
  this.theme=theme;
  Settings.get().loadThemeProperties(theme);
  String title=getMessage(getApplicationTitleKey());
  if (theme.getName() != null && theme.getName().length() > 0) {
    title+="String_Node_Str" + theme.getName();
  }
  frame=new JFrame(title);
  frame.setIconImage(Icons.earth32.getIcon().getImage());
  final SplashScreen splashScreen=showSplashScreen ? new SplashScreen(null,SplashScreen.class.getResource("String_Node_Str")) : null;
  if (Settings.get().isHardwareStereoEnabled()) {
    System.setProperty(AVKey.STEREO_MODE,"String_Node_Str");
  }
  if (useNewt) {
    Configuration.setValue(AVKey.WORLD_WINDOW_CLASS_NAME,WorldWindowNewtAutoDrawable.class.getName());
    Configuration.setValue(AVKey.INPUT_HANDLER_CLASS_NAME,NewtInputHandler.class.getName());
    wwd=new WorldWindowNewtCanvas();
  }
 else {
    wwd=new WorldWindowGLCanvas();
  }
  wwdCanvas=(Canvas)wwd;
  wwdCanvas.setMinimumSize(new Dimension(1,1));
  if (splashScreen != null) {
    splashScreen.addRenderingListener(wwd);
  }
  Model model=(Model)WorldWind.createConfigurationComponent(AVKey.MODEL_CLASS_NAME);
  model.setLayers(new SectionListLayerList());
  model.getGlobe().setElevationModel(new SectionListCompoundElevationModel());
  wwd.setModel(model);
  wwd.addSelectListener(new ClickAndGoSelectListener(wwd,WorldMapLayer.class));
  create3DMouse();
  createDoubleClickListener();
  wwd.addRenderingExceptionListener(new RenderingExceptionListener(){
    @Override public void exceptionThrown(    Throwable t){
      if (t instanceof WWAbsentRequirementException) {
        String title=getMessage(getVideocardFailureTitleKey());
        String message=getMessage(getVideocardFailureMessageKey(),t.getMessage());
        JOptionPane.showMessageDialog(frame,message,title,JOptionPane.ERROR_MESSAGE);
        System.exit(-1);
      }
    }
  }
);
  RetrievalService rs=WorldWind.getRetrievalService();
  if (rs instanceof ExtendedRetrievalService) {
    PolylineLayerRetrievalListener layer=new PolylineLayerRetrievalListener();
    model.getLayers().add(layer);
    ((ExtendedRetrievalService)rs).addRetrievalListener(layer);
  }
  ToolTipManager.sharedInstance().setLightWeightPopupEnabled(false);
  JPopupMenu.setDefaultLightWeightPopupEnabled(false);
  JPanel panel=new JPanel(new BorderLayout());
  frame.setContentPane(panel);
  frame.setBounds(Settings.get().getWindowBounds());
  if (!fullscreen && Settings.get().isWindowMaximized()) {
    frame.setExtendedState(JFrame.MAXIMIZED_BOTH);
  }
  splitPane=new JSplitPane(JSplitPane.HORIZONTAL_SPLIT,true);
  panel.add(splitPane,BorderLayout.CENTER);
  if (!fullscreen) {
    splitPane.setRightComponent(wwdCanvas);
  }
  splitPane.setOneTouchExpandable(true);
  loadSplitLocation();
  boolean anyPanels=!theme.getPanels().isEmpty() && theme.hasSideBar();
  if (anyPanels) {
    sideBar=new SideBar(theme,splitPane);
    splitPane.setLeftComponent(sideBar);
  }
  if (!anyPanels || fullscreen) {
    splitPane.setDividerSize(0);
  }
  if (theme.hasStatusBar()) {
    statusBar=new DownloaderStatusBar();
    panel.add(statusBar,BorderLayout.PAGE_END);
    statusBar.setEventSource(wwd);
    statusBar.setBorder(BorderFactory.createLoweredBevelBorder());
  }
  theme.setup(frame,wwd);
  if (!theme.getLayers().isEmpty() && !theme.hasThemeLayersPanel()) {
    List<ILayerNode> nodes=new ArrayList<ILayerNode>();
    for (    ThemeLayer layer : theme.getLayers()) {
      nodes.add(LayerNode.createFromLayerDefinition(layer));
    }
    LayerEnabler enabler=new LayerEnabler(theme.getLayersPanel().getTree(),wwd);
    enabler.enable(nodes);
  }
  afterSettingsChange();
  createActions();
  createThemeListeners();
  if (theme.hasMenuBar()) {
    menuBar=createMenuBar();
    frame.setJMenuBar(menuBar);
  }
  if (theme.hasToolBar()) {
    toolBar=createToolBar();
    panel.add(toolBar,BorderLayout.PAGE_START);
  }
  addWindowListeners();
  try {
    SwingUtil.invokeLaterTaskOnEDT(new Runnable(){
      @Override public void run(){
        frame.setVisible(true);
        wwdCanvas.createBufferStrategy(2);
      }
    }
);
  }
 catch (  Exception e) {
  }
}

Fixed version (ground truth):
private Application(Theme theme,boolean showSplashScreen,boolean useNewt){
  this.theme=theme;
  Settings.get().loadThemeProperties(theme);
  String title=getMessage(getApplicationTitleKey());
  if (theme.getName() != null && theme.getName().length() > 0) {
    title+="String_Node_Str" + theme.getName();
  }
  frame=new JFrame(title);
  frame.setIconImage(Icons.earth32.getIcon().getImage());
  final SplashScreen splashScreen=showSplashScreen ? new SplashScreen(null,SplashScreen.class.getResource("String_Node_Str")) : null;
  if (Settings.get().isHardwareStereoEnabled()) {
    System.setProperty(AVKey.STEREO_MODE,"String_Node_Str");
  }
  if (useNewt) {
    Configuration.setValue(AVKey.WORLD_WINDOW_CLASS_NAME,WorldWindowNewtAutoDrawable.class.getName());
    Configuration.setValue(AVKey.INPUT_HANDLER_CLASS_NAME,NewtInputHandler.class.getName());
    wwd=new WorldWindowNewtCanvas();
  }
 else {
    wwd=new WorldWindowGLCanvas();
  }
  wwdCanvas=(Canvas)wwd;
  wwdCanvas.setMinimumSize(new Dimension(1,1));
  wwdCanvas.addComponentListener(new ComponentAdapter(){
    @Override public void componentResized(    ComponentEvent e){
      wwdCanvas.setMinimumSize(new Dimension(1,1));
    }
  }
);
  if (splashScreen != null) {
    splashScreen.addRenderingListener(wwd);
  }
  Model model=(Model)WorldWind.createConfigurationComponent(AVKey.MODEL_CLASS_NAME);
  model.setLayers(new SectionListLayerList());
  model.getGlobe().setElevationModel(new SectionListCompoundElevationModel());
  wwd.setModel(model);
  wwd.addSelectListener(new ClickAndGoSelectListener(wwd,WorldMapLayer.class));
  create3DMouse();
  createDoubleClickListener();
  wwd.addRenderingExceptionListener(new RenderingExceptionListener(){
    @Override public void exceptionThrown(    Throwable t){
      if (t instanceof WWAbsentRequirementException) {
        String title=getMessage(getVideocardFailureTitleKey());
        String message=getMessage(getVideocardFailureMessageKey(),t.getMessage());
        JOptionPane.showMessageDialog(frame,message,title,JOptionPane.ERROR_MESSAGE);
        System.exit(-1);
      }
    }
  }
);
  RetrievalService rs=WorldWind.getRetrievalService();
  if (rs instanceof ExtendedRetrievalService) {
    PolylineLayerRetrievalListener layer=new PolylineLayerRetrievalListener();
    model.getLayers().add(layer);
    ((ExtendedRetrievalService)rs).addRetrievalListener(layer);
  }
  ToolTipManager.sharedInstance().setLightWeightPopupEnabled(false);
  JPopupMenu.setDefaultLightWeightPopupEnabled(false);
  JPanel panel=new JPanel(new BorderLayout());
  frame.setContentPane(panel);
  frame.setBounds(Settings.get().getWindowBounds());
  if (!fullscreen && Settings.get().isWindowMaximized()) {
    frame.setExtendedState(JFrame.MAXIMIZED_BOTH);
  }
  splitPane=new JSplitPane(JSplitPane.HORIZONTAL_SPLIT,true);
  panel.add(splitPane,BorderLayout.CENTER);
  if (!fullscreen) {
    splitPane.setRightComponent(wwdCanvas);
  }
  splitPane.setOneTouchExpandable(true);
  loadSplitLocation();
  boolean anyPanels=!theme.getPanels().isEmpty() && theme.hasSideBar();
  if (anyPanels) {
    sideBar=new SideBar(theme,splitPane);
    splitPane.setLeftComponent(sideBar);
  }
  if (!anyPanels || fullscreen) {
    splitPane.setDividerSize(0);
  }
  if (theme.hasStatusBar()) {
    statusBar=new DownloaderStatusBar();
    panel.add(statusBar,BorderLayout.PAGE_END);
    statusBar.setEventSource(wwd);
    statusBar.setBorder(BorderFactory.createLoweredBevelBorder());
  }
  theme.setup(frame,wwd);
  if (!theme.getLayers().isEmpty() && !theme.hasThemeLayersPanel()) {
    List<ILayerNode> nodes=new ArrayList<ILayerNode>();
    for (    ThemeLayer layer : theme.getLayers()) {
      nodes.add(LayerNode.createFromLayerDefinition(layer));
    }
    LayerEnabler enabler=new LayerEnabler(theme.getLayersPanel().getTree(),wwd);
    enabler.enable(nodes);
  }
  afterSettingsChange();
  createActions();
  createThemeListeners();
  if (theme.hasMenuBar()) {
    menuBar=createMenuBar();
    frame.setJMenuBar(menuBar);
  }
  if (theme.hasToolBar()) {
    toolBar=createToolBar();
    panel.add(toolBar,BorderLayout.PAGE_START);
  }
  addWindowListeners();
  try {
    SwingUtil.invokeLaterTaskOnEDT(new Runnable(){
      @Override public void run(){
        frame.setVisible(true);
        wwdCanvas.createBufferStrategy(2);
      }
    }
);
  }
 catch (  Exception e) {
  }
}