Program: 102969
Project: 102969
Buggy source:
/** 
 * Starts the address book service.
 */
static void startService(){
  String cssClassName;
  ConfigurationService configService=getConfigService();
  if (OSUtils.IS_WINDOWS && configService.getBoolean(PNAME_ENABLE_MICROSOFT_OUTLOOK_SEARCH,true)) {
    cssClassName="String_Node_Str" + "String_Node_Str";
  }
 else   if (OSUtils.IS_MAC && configService.getBoolean(PNAME_ENABLE_MACOSX_ADDRESS_BOOK_SEARCH,true)) {
    cssClassName="String_Node_Str" + "String_Node_Str";
  }
 else   return;
  if (OSUtils.IS_WINDOWS && configService.getBoolean(PNAME_ENABLE_DEFAULT_IM_APPLICATION_CHANGE,true)) {
    String isDefaultIMAppString=configService.getString(PNAME_MAKE_JITSI_DEFAULT_IM_APPLICATION);
    if (isDefaultIMAppString == null) {
      configService.setProperty(PNAME_MAKE_JITSI_DEFAULT_IM_APPLICATION,DefaultIMApp.isJitsiDefaultIMApp());
    }
 else {
      boolean isDefaultIMApp=Boolean.parseBoolean(isDefaultIMAppString);
      if (DefaultIMApp.isJitsiDefaultIMApp() != isDefaultIMApp) {
        if (isDefaultIMApp) {
          setAsDefaultIMApplication();
        }
 else {
          unsetDefaultIMApplication();
        }
      }
    }
  }
  try {
    css=(ContactSourceService)Class.forName(cssClassName).newInstance();
    if (css.equals("String_Node_Str" + "String_Node_Str")) {
      MsOutlookAddrBookContactSourceService contactSource=((MsOutlookAddrBookContactSourceService)css);
      MsOutlookAddrBookContactSourceService.initMAPI(contactSource.createNotificationDelegate());
    }
  }
 catch (  Exception ex) {
    String msg="String_Node_Str" + cssClassName + "String_Node_Str"+ ex.getMessage();
    logger.error(msg);
    if (logger.isDebugEnabled())     logger.debug(msg,ex);
    return;
  }
  try {
    cssServiceRegistration=bundleContext.registerService(ContactSourceService.class.getName(),css,null);
  }
  finally {
    if (cssServiceRegistration == null) {
      if (css instanceof AsyncContactSourceService)       ((AsyncContactSourceService)css).stop();
      css=null;
    }
 else {
      if (logger.isInfoEnabled())       logger.info("String_Node_Str" + css.getDisplayName() + "String_Node_Str");
    }
  }
}

Fixed version (ground truth):
/** 
 * Starts the address book service.
 */
static void startService(){
  String cssClassName;
  ConfigurationService configService=getConfigService();
  if (OSUtils.IS_WINDOWS && configService.getBoolean(PNAME_ENABLE_MICROSOFT_OUTLOOK_SEARCH,true)) {
    cssClassName="String_Node_Str" + "String_Node_Str";
  }
 else   if (OSUtils.IS_MAC && configService.getBoolean(PNAME_ENABLE_MACOSX_ADDRESS_BOOK_SEARCH,true)) {
    cssClassName="String_Node_Str" + "String_Node_Str";
  }
 else   return;
  if (OSUtils.IS_WINDOWS && configService.getBoolean(PNAME_ENABLE_DEFAULT_IM_APPLICATION_CHANGE,true)) {
    String isDefaultIMAppString=configService.getString(PNAME_MAKE_JITSI_DEFAULT_IM_APPLICATION);
    if (isDefaultIMAppString == null) {
      configService.setProperty(PNAME_MAKE_JITSI_DEFAULT_IM_APPLICATION,DefaultIMApp.isJitsiDefaultIMApp());
    }
 else {
      boolean isDefaultIMApp=Boolean.parseBoolean(isDefaultIMAppString);
      if (DefaultIMApp.isJitsiDefaultIMApp() != isDefaultIMApp) {
        if (isDefaultIMApp) {
          setAsDefaultIMApplication();
        }
 else {
          unsetDefaultIMApplication();
        }
      }
    }
  }
  try {
    css=(ContactSourceService)Class.forName(cssClassName).newInstance();
    if (cssClassName.equals("String_Node_Str" + "String_Node_Str")) {
      MsOutlookAddrBookContactSourceService contactSource=((MsOutlookAddrBookContactSourceService)css);
      MsOutlookAddrBookContactSourceService.initMAPI(contactSource.createNotificationDelegate());
    }
  }
 catch (  Exception ex) {
    String msg="String_Node_Str" + cssClassName + "String_Node_Str"+ ex.getMessage();
    logger.error(msg);
    if (logger.isDebugEnabled())     logger.debug(msg,ex);
    return;
  }
  try {
    cssServiceRegistration=bundleContext.registerService(ContactSourceService.class.getName(),css,null);
  }
  finally {
    if (cssServiceRegistration == null) {
      if (css instanceof AsyncContactSourceService)       ((AsyncContactSourceService)css).stop();
      css=null;
    }
 else {
      if (logger.isInfoEnabled())       logger.info("String_Node_Str" + css.getDisplayName() + "String_Node_Str");
    }
  }
}