Program: 46249
Project: 46249
Buggy source:
public void initialize(final ServerSessionManager loginInfo){
  ContentRepositoryRegistry registry=ContentRepositoryRegistry.getInstance();
  final ContentRepository repo=registry.getRepository(loginInfo);
  Action launchAction=new AbstractAction("String_Node_Str"){
    public synchronized void actionPerformed(    ActionEvent e){
      if (frame == null) {
        frame=new BrowserFrame(repo);
      }
      SwingUtilities.invokeLater(new Runnable(){
        public void run(){
          frame.setVisible(true);
        }
      }
);
    }
  }
;
  JmeClientMain.getFrame().addToToolMenu(new JMenuItem(launchAction));
  JMenuItem browserItem=new JMenuItem("String_Node_Str");
  browserItem.addActionListener(new ActionListener(){
    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);
      }
    }
  }
);
  JmeClientMain.getFrame().addToToolMenu(browserItem);
  ContentBrowserManager manager=ContentBrowserManager.getContentBrowserManager();
  manager.setDefaultContentBrowser(new ContentBrowserJDialog(repo));
}

Fixed version (ground truth):
public void initialize(final ServerSessionManager loginInfo){
  Action launchAction=new AbstractAction("String_Node_Str"){
    public synchronized void actionPerformed(    ActionEvent e){
      if (frame == null) {
        ContentRepositoryRegistry registry=ContentRepositoryRegistry.getInstance();
        ContentRepository repo=registry.getRepository(loginInfo);
        frame=new BrowserFrame(repo);
      }
      SwingUtilities.invokeLater(new Runnable(){
        public void run(){
          frame.setVisible(true);
        }
      }
);
    }
  }
;
  JmeClientMain.getFrame().addToToolMenu(new JMenuItem(launchAction));
  JMenuItem browserItem=new JMenuItem("String_Node_Str");
  browserItem.addActionListener(new ActionListener(){
    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);
      }
    }
  }
);
  JmeClientMain.getFrame().addToToolMenu(browserItem);
  ContentBrowserManager manager=ContentBrowserManager.getContentBrowserManager();
  manager.setDefaultContentBrowser(new ContentBrowserJDialog(loginInfo));
}