Program: 94885
Project: 94885
Buggy source:
protected void processAsynch(AsynchEvent e){
  try {
    if (e instanceof ECFConnectionPacketEvent) {
      handleXMPPMessage((Packet)e.getData());
      return;
    }
 else     if (e instanceof ECFConnectionObjectPacketEvent) {
      ECFConnectionObjectPacketEvent evt=(ECFConnectionObjectPacketEvent)e;
      Object obj=evt.getObjectValue();
      Object cm=deserializeContainerMessage((byte[])obj);
      if (cm == null)       throw new IOException(Messages.XMPPContainer_EXCEPTION_DESERIALIZED_OBJECT_NULL);
      ContainerMessage contMessage=(ContainerMessage)cm;
      IChatRoomContainer chat=chatRoomManager.findReceiverChatRoom(contMessage.getToContainerID());
      if (chat != null && chat instanceof XMPPChatRoomContainer) {
        XMPPChatRoomContainer cont=(XMPPChatRoomContainer)chat;
        cont.handleContainerMessage(contMessage);
        return;
      }
      Object data=contMessage.getData();
      if (data instanceof ContainerMessage.CreateMessage) {
        handleCreateMessage(contMessage);
      }
 else       if (data instanceof ContainerMessage.CreateResponseMessage) {
        handleCreateResponseMessage(contMessage);
      }
 else       if (data instanceof ContainerMessage.SharedObjectMessage) {
        handleSharedObjectMessage(contMessage);
      }
 else       if (data instanceof ContainerMessage.SharedObjectDisposeMessage) {
        handleSharedObjectDisposeMessage(contMessage);
      }
 else {
        debug(NLS.bind(Messages.XMPPContainer_UNRECOGONIZED_CONTAINER_MESSAGE,contMessage));
      }
    }
 else {
      log(NLS.bind(Messages.XMPPContainer_UNEXPECTED_EVENT,e),null);
    }
  }
 catch (  Exception except) {
    log(NLS.bind(Messages.XMPPContainer_EXCEPTION_HANDLING_ASYCH_EVENT,e),except);
  }
}

Fixed version (ground truth):
protected void processAsynch(AsynchEvent e){
  try {
    if (e instanceof ECFConnectionPacketEvent) {
      handleXMPPMessage((Packet)e.getData());
      return;
    }
 else     if (e instanceof ECFConnectionObjectPacketEvent) {
      final ECFConnectionObjectPacketEvent evt=(ECFConnectionObjectPacketEvent)e;
      final Object obj=evt.getObjectValue();
      final Object cm=deserializeContainerMessage((byte[])obj);
      if (cm == null)       throw new IOException(Messages.XMPPContainer_EXCEPTION_DESERIALIZED_OBJECT_NULL);
      final ContainerMessage contMessage=(ContainerMessage)cm;
      final IChatRoomContainer chat=chatRoomManager.findReceiverChatRoom(contMessage.getToContainerID());
      if (chat != null && chat instanceof XMPPChatRoomContainer) {
        final XMPPChatRoomContainer cont=(XMPPChatRoomContainer)chat;
        cont.handleContainerMessage(contMessage);
        return;
      }
      final Object data=contMessage.getData();
      if (data instanceof ContainerMessage.CreateMessage) {
        handleCreateMessage(contMessage);
      }
 else       if (data instanceof ContainerMessage.CreateResponseMessage) {
        handleCreateResponseMessage(contMessage);
      }
 else       if (data instanceof ContainerMessage.SharedObjectMessage) {
        handleSharedObjectMessage(contMessage);
      }
 else       if (data instanceof ContainerMessage.SharedObjectDisposeMessage) {
        handleSharedObjectDisposeMessage(contMessage);
      }
 else {
        debug(NLS.bind(Messages.XMPPContainer_UNRECOGONIZED_CONTAINER_MESSAGE,contMessage));
      }
    }
 else {
      log(NLS.bind(Messages.XMPPContainer_UNEXPECTED_EVENT,e),null);
    }
  }
 catch (  final Exception except) {
    log(NLS.bind(Messages.XMPPContainer_EXCEPTION_HANDLING_ASYCH_EVENT,e),except);
  }
}