Program: 46248
Project: 46248
Buggy source:
public void actionPerformed(ActionEvent e){
  ContentBrowserJDialog contentBrowserFrame;
  if (browserDialogRef == null || browserDialogRef.get() == null) {
    contentBrowserFrame=new ContentBrowserJDialog(repo);
    contentBrowserFrame.setModal(false);
    contentBrowserFrame.setActionName(BrowserAction.OK_ACTION,"String_Node_Str");
    contentBrowserFrame.setActionName(BrowserAction.CANCEL_ACTION,"String_Node_Str");
    contentBrowserFrame.addContentBrowserListener(new ContentBrowserListener(){
      public void okAction(      String uri){
        int index=uri.lastIndexOf("String_Node_Str");
        if (index == -1) {
          logger.warning("String_Node_Str" + uri);
          return;
        }
        String extension=uri.substring(index + 1);
        CellRegistry registry=CellRegistry.getCellRegistry();
        Set<CellFactorySPI> factories=registry.getCellFactoriesByExtension(extension);
        if (factories == null) {
          logger.warning("String_Node_Str" + extension);
        }
        CellFactorySPI factory=factories.iterator().next();
        Properties props=new Properties();
        props.put("String_Node_Str",uri);
        CellServerState state=factory.getDefaultCellServerState(props);
        try {
          CellUtils.createCell(state,5.0f);
        }
 catch (        CellCreationException excp) {
          logger.log(Level.WARNING,"String_Node_Str" + uri,excp);
        }
      }
      public void cancelAction(){
      }
    }
);
    browserDialogRef=new WeakReference(contentBrowserFrame);
  }
 else {
    contentBrowserFrame=browserDialogRef.get();
  }
  if (contentBrowserFrame.isVisible() == false) {
    contentBrowserFrame.setVisible(true);
  }
}

Fixed version (ground truth):
public void actionPerformed(ActionEvent e){
  ContentBrowserJDialog contentBrowserFrame;
  if (browserDialogRef == null || browserDialogRef.get() == null) {
    contentBrowserFrame=new ContentBrowserJDialog(loginInfo);
    contentBrowserFrame.setModal(false);
    contentBrowserFrame.setActionName(BrowserAction.OK_ACTION,"String_Node_Str");
    contentBrowserFrame.setActionName(BrowserAction.CANCEL_ACTION,"String_Node_Str");
    contentBrowserFrame.addContentBrowserListener(new ContentBrowserListener(){
      public void okAction(      String uri){
        int index=uri.lastIndexOf("String_Node_Str");
        if (index == -1) {
          logger.warning("String_Node_Str" + uri);
          return;
        }
        String extension=uri.substring(index + 1);
        CellRegistry registry=CellRegistry.getCellRegistry();
        Set<CellFactorySPI> factories=registry.getCellFactoriesByExtension(extension);
        if (factories == null) {
          logger.warning("String_Node_Str" + extension);
        }
        CellFactorySPI factory=factories.iterator().next();
        Properties props=new Properties();
        props.put("String_Node_Str",uri);
        CellServerState state=factory.getDefaultCellServerState(props);
        try {
          CellUtils.createCell(state,5.0f);
        }
 catch (        CellCreationException excp) {
          logger.log(Level.WARNING,"String_Node_Str" + uri,excp);
        }
      }
      public void cancelAction(){
      }
    }
);
    browserDialogRef=new WeakReference(contentBrowserFrame);
  }
 else {
    contentBrowserFrame=browserDialogRef.get();
  }
  if (contentBrowserFrame.isVisible() == false) {
    contentBrowserFrame.setVisible(true);
  }
}