Program: 104228
Project: 104228
Buggy source:
/** 
 * Sets the look&feel and the theme.
 */
private void setDefaultThemePack(){
  ToolTipManager toolTipManager=ToolTipManager.sharedInstance();
  UIManager.put("String_Node_Str",new Color(GuiActivator.getResources().getColor("String_Node_Str")));
  toolTipManager.setInitialDelay(500);
  toolTipManager.setDismissDelay(60000);
  toolTipManager.setEnabled(true);
  UIManager.put("String_Node_Str",getClass().getClassLoader());
  String osName=System.getProperty("String_Node_Str");
  String laf=UIManager.getSystemLookAndFeelClassName();
  boolean lafIsSet=false;
  if ((laf != null) && !laf.equals(UIManager.getCrossPlatformLookAndFeelClassName())) {
    try {
      UIManager.setLookAndFeel(laf);
      lafIsSet=true;
      UIDefaults uiDefaults=UIManager.getDefaults();
      if (osName.startsWith("String_Node_Str")) {
        uiDefaults.put("String_Node_Str",uiDefaults.get("String_Node_Str"));
      }
    }
 catch (    ClassNotFoundException ex) {
    }
catch (    InstantiationException ex) {
    }
catch (    IllegalAccessException ex) {
    }
catch (    UnsupportedLookAndFeelException ex) {
    }
  }
  if (!lafIsSet) {
    try {
      SIPCommLookAndFeel lf=new SIPCommLookAndFeel();
      SIPCommLookAndFeel.setCurrentTheme(new SIPCommDefaultTheme());
      boolean isDecorated=new Boolean(GuiActivator.getResources().getSettingsString("String_Node_Str")).booleanValue();
      if (isDecorated) {
        JFrame.setDefaultLookAndFeelDecorated(true);
        JDialog.setDefaultLookAndFeelDecorated(true);
      }
      UIManager.setLookAndFeel(lf);
    }
 catch (    UnsupportedLookAndFeelException e) {
      logger.error("String_Node_Str",e);
    }
  }
}

Fixed version (ground truth):
/** 
 * Sets the look&feel and the theme.
 */
private void setDefaultThemePack(){
  ToolTipManager toolTipManager=ToolTipManager.sharedInstance();
  UIManager.put("String_Node_Str",new Color(GuiActivator.getResources().getColor("String_Node_Str")));
  toolTipManager.setInitialDelay(500);
  toolTipManager.setDismissDelay(60000);
  toolTipManager.setEnabled(true);
  UIManager.put("String_Node_Str",getClass().getClassLoader());
  String osName=System.getProperty("String_Node_Str");
  String laf=UIManager.getSystemLookAndFeelClassName();
  boolean lafIsSet=false;
  if ((laf != null) && !laf.equals(UIManager.getCrossPlatformLookAndFeelClassName())) {
    try {
      UIManager.setLookAndFeel(laf);
      lafIsSet=true;
      UIDefaults uiDefaults=UIManager.getDefaults();
      if (osName.startsWith("String_Node_Str")) {
        uiDefaults.put("String_Node_Str",uiDefaults.get("String_Node_Str"));
      }
      if (laf.equals("String_Node_Str") || laf.equals("String_Node_Str")) {
        UIDefaults metalDefaults=(new javax.swing.plaf.metal.MetalLookAndFeel()).getDefaults();
        uiDefaults.put("String_Node_Str",metalDefaults.get("String_Node_Str"));
      }
    }
 catch (    ClassNotFoundException ex) {
    }
catch (    InstantiationException ex) {
    }
catch (    IllegalAccessException ex) {
    }
catch (    UnsupportedLookAndFeelException ex) {
    }
  }
  if (!lafIsSet) {
    try {
      SIPCommLookAndFeel lf=new SIPCommLookAndFeel();
      SIPCommLookAndFeel.setCurrentTheme(new SIPCommDefaultTheme());
      boolean isDecorated=new Boolean(GuiActivator.getResources().getSettingsString("String_Node_Str")).booleanValue();
      if (isDecorated) {
        JFrame.setDefaultLookAndFeelDecorated(true);
        JDialog.setDefaultLookAndFeelDecorated(true);
      }
      UIManager.setLookAndFeel(lf);
    }
 catch (    UnsupportedLookAndFeelException e) {
      logger.error("String_Node_Str",e);
    }
  }
}