Program: 104061
Project: 104061
Buggy source:
/** 
 * Creates a chatroom, by specifying the chat room name and the parent protocol provider.
 * @param chatRoomName the name of the chat room to create.
 * @param protocolProvider the parent protocol provider.
 */
public ChatRoomWrapper createChatRoom(String chatRoomName,ProtocolProviderService protocolProvider){
  ChatRoomWrapper chatRoomWrapper=null;
  OperationSetMultiUserChat groupChatOpSet=(OperationSetMultiUserChat)protocolProvider.getOperationSet(OperationSetMultiUserChat.class);
  if (groupChatOpSet == null)   return null;
  ChatRoom chatRoom=null;
  try {
    chatRoom=groupChatOpSet.createChatRoom(chatRoomName,new Hashtable());
  }
 catch (  OperationFailedException ex) {
    logger.error("String_Node_Str",ex);
    new ErrorDialog(GuiActivator.getUIService().getMainFrame(),GuiActivator.getResources().getI18NString("String_Node_Str"),GuiActivator.getResources().getI18NString("String_Node_Str",new String[]{chatRoomName}),ex).showDialog();
  }
catch (  OperationNotSupportedException ex) {
    logger.error("String_Node_Str",ex);
    new ErrorDialog(GuiActivator.getUIService().getMainFrame(),GuiActivator.getResources().getI18NString("String_Node_Str"),GuiActivator.getResources().getI18NString("String_Node_Str",new String[]{chatRoomName}),ex).showDialog();
  }
  if (chatRoom != null) {
    ChatRoomProviderWrapper parentProvider=chatRoomList.findServerWrapperFromProvider(protocolProvider);
    chatRoomWrapper=new ChatRoomWrapper(parentProvider,chatRoom);
    chatRoomList.addChatRoom(chatRoomWrapper);
    fireChatRoomListChangedEvent(chatRoomWrapper,ChatRoomListChangeEvent.CHAT_ROOM_ADDED);
  }
  return chatRoomWrapper;
}

Fixed version (ground truth):
/** 
 * Creates a chatroom, by specifying the chat room name and the parent protocol provider.
 * @param chatRoomName the name of the chat room to create.
 * @param protocolProvider the parent protocol provider.
 */
public ChatRoomWrapper createChatRoom(String chatRoomName,ProtocolProviderService protocolProvider){
  ChatRoomWrapper chatRoomWrapper=null;
  OperationSetMultiUserChat groupChatOpSet=(OperationSetMultiUserChat)protocolProvider.getOperationSet(OperationSetMultiUserChat.class);
  if (groupChatOpSet == null)   return null;
  ChatRoom chatRoom=null;
  try {
    chatRoom=groupChatOpSet.createChatRoom(chatRoomName,null);
  }
 catch (  OperationFailedException ex) {
    logger.error("String_Node_Str",ex);
    new ErrorDialog(GuiActivator.getUIService().getMainFrame(),GuiActivator.getResources().getI18NString("String_Node_Str"),GuiActivator.getResources().getI18NString("String_Node_Str",new String[]{chatRoomName}),ex).showDialog();
  }
catch (  OperationNotSupportedException ex) {
    logger.error("String_Node_Str",ex);
    new ErrorDialog(GuiActivator.getUIService().getMainFrame(),GuiActivator.getResources().getI18NString("String_Node_Str"),GuiActivator.getResources().getI18NString("String_Node_Str",new String[]{chatRoomName}),ex).showDialog();
  }
  if (chatRoom != null) {
    ChatRoomProviderWrapper parentProvider=chatRoomList.findServerWrapperFromProvider(protocolProvider);
    chatRoomWrapper=new ChatRoomWrapper(parentProvider,chatRoom);
    chatRoomList.addChatRoom(chatRoomWrapper);
    fireChatRoomListChangedEvent(chatRoomWrapper,ChatRoomListChangeEvent.CHAT_ROOM_ADDED);
  }
  return chatRoomWrapper;
}