Program: 58793
Project: 58793
Buggy source:
/** 
 * Constructor.
 */
public GLRemoteRendering(GLCaleydoCanvas glCanvas,final String sLabel,final IViewFrustum viewFrustum,final ARemoteViewLayoutRenderStyle.LayoutMode layoutMode){
  super(glCanvas,sLabel,viewFrustum,true);
  viewType=EManagedObjectType.GL_REMOTE_RENDERING;
  this.layoutMode=layoutMode;
  if (generalManager.isWiiModeActive()) {
    glOffScreenRenderer=new GLOffScreenTextureRenderer();
  }
  if (layoutMode.equals(ARemoteViewLayoutRenderStyle.LayoutMode.BUCKET)) {
    layoutRenderStyle=new BucketLayoutRenderStyle(viewFrustum);
    super.renderStyle=layoutRenderStyle;
    bucketMouseWheelListener=new BucketMouseWheelListener(this,(BucketLayoutRenderStyle)layoutRenderStyle);
    parentGLCanvas.removeMouseWheelListener(glMouseListener);
    parentGLCanvas.addMouseWheelListener(bucketMouseWheelListener);
  }
 else   if (layoutMode.equals(ARemoteViewLayoutRenderStyle.LayoutMode.JUKEBOX)) {
    layoutRenderStyle=new JukeboxLayoutRenderStyle(viewFrustum);
  }
 else   if (layoutMode.equals(ARemoteViewLayoutRenderStyle.LayoutMode.LIST)) {
    layoutRenderStyle=new ListLayoutRenderStyle(viewFrustum);
  }
  focusLevel=layoutRenderStyle.initFocusLevel(bucketMouseWheelListener.isZoomedIn());
  if (GeneralManager.get().isWiiModeActive() && layoutMode.equals(ARemoteViewLayoutRenderStyle.LayoutMode.BUCKET)) {
    stackLevel=((BucketLayoutRenderStyle)layoutRenderStyle).initStackLevelWii();
  }
 else {
    stackLevel=layoutRenderStyle.initStackLevel(bucketMouseWheelListener.isZoomedIn());
  }
  poolLevel=layoutRenderStyle.initPoolLevel(bucketMouseWheelListener.isZoomedIn(),-1);
  externalSelectionLevel=layoutRenderStyle.initMemoLevel();
  transitionLevel=layoutRenderStyle.initTransitionLevel();
  spawnLevel=layoutRenderStyle.initSpawnLevel();
  if (layoutMode.equals(ARemoteViewLayoutRenderStyle.LayoutMode.BUCKET)) {
    glConnectionLineRenderer=new GLConnectionLineRendererBucket(focusLevel,stackLevel,poolLevel);
  }
 else   if (layoutMode.equals(ARemoteViewLayoutRenderStyle.LayoutMode.JUKEBOX)) {
    glConnectionLineRenderer=new GLConnectionLineRendererJukebox(focusLevel,stackLevel,poolLevel);
  }
 else   if (layoutMode.equals(ARemoteViewLayoutRenderStyle.LayoutMode.LIST)) {
    glConnectionLineRenderer=null;
  }
  glMouseListener.addGLCanvas(this);
  arSlerpActions=new ArrayList<SlerpAction>();
  newViews=new ArrayList<ASerializedView>();
  dragAndDrop=new GLDragAndDrop();
  textRenderer=new TextRenderer(new Font("String_Node_Str",Font.PLAIN,24),false);
  registerEventListeners();
  iPoolLevelCommonID=generalManager.getIDManager().createID(EManagedObjectType.REMOTE_LEVEL_ELEMENT);
}

Fixed version (ground truth):
/** 
 * Constructor.
 */
public GLRemoteRendering(GLCaleydoCanvas glCanvas,final String sLabel,final IViewFrustum viewFrustum,final ARemoteViewLayoutRenderStyle.LayoutMode layoutMode){
  super(glCanvas,sLabel,viewFrustum,true);
  viewType=EManagedObjectType.GL_REMOTE_RENDERING;
  this.layoutMode=layoutMode;
  if (generalManager.isWiiModeActive()) {
    glOffScreenRenderer=new GLOffScreenTextureRenderer();
  }
  if (layoutMode.equals(ARemoteViewLayoutRenderStyle.LayoutMode.BUCKET)) {
    layoutRenderStyle=new BucketLayoutRenderStyle(viewFrustum);
    super.renderStyle=layoutRenderStyle;
    bucketMouseWheelListener=new BucketMouseWheelListener(this,(BucketLayoutRenderStyle)layoutRenderStyle);
    parentGLCanvas.removeMouseWheelListener(glMouseListener);
    parentGLCanvas.addMouseWheelListener(bucketMouseWheelListener);
  }
 else   if (layoutMode.equals(ARemoteViewLayoutRenderStyle.LayoutMode.JUKEBOX)) {
    layoutRenderStyle=new JukeboxLayoutRenderStyle(viewFrustum);
  }
 else   if (layoutMode.equals(ARemoteViewLayoutRenderStyle.LayoutMode.LIST)) {
    layoutRenderStyle=new ListLayoutRenderStyle(viewFrustum);
  }
  focusLevel=layoutRenderStyle.initFocusLevel(bucketMouseWheelListener.isZoomedIn());
  if (GeneralManager.get().isWiiModeActive() && layoutMode.equals(ARemoteViewLayoutRenderStyle.LayoutMode.BUCKET)) {
    stackLevel=((BucketLayoutRenderStyle)layoutRenderStyle).initStackLevelWii();
  }
 else {
    stackLevel=layoutRenderStyle.initStackLevel(bucketMouseWheelListener.isZoomedIn());
  }
  poolLevel=layoutRenderStyle.initPoolLevel(bucketMouseWheelListener.isZoomedIn(),-1);
  externalSelectionLevel=layoutRenderStyle.initMemoLevel();
  transitionLevel=layoutRenderStyle.initTransitionLevel();
  spawnLevel=layoutRenderStyle.initSpawnLevel();
  if (layoutMode.equals(ARemoteViewLayoutRenderStyle.LayoutMode.BUCKET)) {
    glConnectionLineRenderer=new GLConnectionLineRendererBucket(focusLevel,stackLevel,poolLevel);
  }
 else   if (layoutMode.equals(ARemoteViewLayoutRenderStyle.LayoutMode.JUKEBOX)) {
    glConnectionLineRenderer=new GLConnectionLineRendererJukebox(focusLevel,stackLevel,poolLevel);
  }
 else   if (layoutMode.equals(ARemoteViewLayoutRenderStyle.LayoutMode.LIST)) {
    glConnectionLineRenderer=null;
  }
  glMouseListener.addGLCanvas(this);
  arSlerpActions=new ArrayList<SlerpAction>();
  newViews=new ArrayList<ASerializedView>();
  dragAndDrop=new GLDragAndDrop();
  textRenderer=new TextRenderer(new Font("String_Node_Str",Font.PLAIN,24),false);
  iPoolLevelCommonID=generalManager.getIDManager().createID(EManagedObjectType.REMOTE_LEVEL_ELEMENT);
}