Program: 11204
Project: 11204
Buggy source:
public Animator(){
  Configuration.setValue(AVKey.LAYERS_CLASS_NAMES,"String_Node_Str");
  Configuration.setValue(AVKey.VIEW_CLASS_NAME,BasicRollOrbitView.class.getName());
  Configuration.setValue(AVKey.SCENE_CONTROLLER_CLASS_NAME,AnimatorSceneController.class.getName());
  Configuration.setValue(AVKey.TASK_SERVICE_CLASS_NAME,ImmediateTaskService.class.getName());
  Configuration.setValue(AVKey.RETRIEVAL_SERVICE_CLASS_NAME,ImmediateRetrievalService.class.getName());
  Configuration.setValue(AVKey.TESSELLATOR_CLASS_NAME,ElevationTesselator.class.getName());
  animationChangeListener=new ChangeListener(){
    public void stateChanged(    ChangeEvent e){
      changed=true;
      setTitleBar();
    }
  }
;
  animation=new SimpleAnimation();
  resetChanged();
  updater=new Updater();
  frame=new JFrame();
  frame.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);
  frame.addWindowListener(new WindowAdapter(){
    @Override public void windowClosing(    WindowEvent e){
      quit();
    }
  }
);
  frame.setLayout(new BorderLayout());
  wwd=new WorldWindowGLCanvas(caps);
  Model model=new BasicModel();
  wwd.setModel(model);
  setAnimationSize(1024,576);
  frame.add(wwd,BorderLayout.CENTER);
  ((AWTInputHandler)wwd.getInputHandler()).setSmoothViewChanges(false);
  ((OrbitView)wwd.getView()).getOrbitViewLimits().setPitchLimits(Angle.ZERO,Angle.POS180);
  ocem=new OffsetCompoundElevationModel();
  model.getGlobe().setElevationModel(ocem);
  LayerList layers=model.getLayers();
  Skybox skybox=new Skybox();
  layers.add(skybox);
  Skysphere skysphere=new Skysphere();
  layers.add(skysphere);
  Layer depth=new DepthLayer();
  layers.add(depth);
  Vec4 direction=new Vec4(0.32,0.9,-0.3,1.0);
  lensFlare=LensFlareLayer.getPresetInstance(LensFlareLayer.PRESET_NOSUN);
  layers.add(lensFlare);
  lensFlare.setSunDistance(lensFlare.getSunDistance() * 100);
  AtmosphereLayer atmosphere=new AtmosphereLayer();
  layers.add(atmosphere);
  lensFlare.setSunDirection(direction);
  atmosphere.setLightDirection(direction);
  SkyGradientLayer sky=new SkyGradientLayer();
  layers.add(sky);
  Color fogColor=new Color(138,82,57);
  FogLayer fog=new FogLayer();
  layers.add(fog);
  fog.setNearFactor(0.8f);
  fog.setFarFactor(0.4f);
  fog.setColor(fogColor);
  bmng=new BMNGWMSLayer();
  layers.add(bmng);
  landsat=new LandsatI3WMSLayer();
  layers.add(landsat);
  String tileDrive="String_Node_Str";
  ElevationModel earthem=new ExtendedBasicElevationModelFactory().createFromConfigFile("String_Node_Str");
  ExtendedBasicElevationModel eem=getEBEM(earthem);
  ExtendedBasicElevationModel bem=FileLayer.createElevationModel("String_Node_Str","String_Node_Str",new File(tileDrive + "String_Node_Str"),7,150,LatLon.fromDegrees(20d,20d),Sector.fromDegrees(-59.99875,-7.99875,91.99875,171.99875),-8922,3958);
  bem.setMissingDataSignal(-32768);
  ocem.addElevationModel(eem);
  ocem.addElevationModel(bem);
  map1=FileLayer.createLayer("String_Node_Str","String_Node_Str","String_Node_Str",new File(tileDrive + "String_Node_Str"),"String_Node_Str",13,LatLon.fromDegrees(36d,36d),Sector.fromDegrees(-24.0536281,-23.4102781,132.0746805,133.9779805));
  layers.add(map1);
  map2=FileLayer.createLayer("String_Node_Str","String_Node_Str","String_Node_Str",new File(tileDrive + "String_Node_Str"),"String_Node_Str",13,LatLon.fromDegrees(36d,36d),Sector.fromDegrees(-24.0544889,-23.4081639,132.0708833,133.9771083));
  layers.add(map2);
  alos=FileLayer.createLayer("String_Node_Str","String_Node_Str","String_Node_Str",new File(tileDrive + "String_Node_Str"),"String_Node_Str",new File(tileDrive + "String_Node_Str"),"String_Node_Str",13,LatLon.fromDegrees(36d,36d),Sector.fromDegrees(-24.0,-23.433333,132.25,133.95));
  layers.add(alos);
  roads=FileLayer.createLayer("String_Node_Str","String_Node_Str","String_Node_Str",new File(tileDrive + "String_Node_Str"),"String_Node_Str",12,LatLon.fromDegrees(36d,36d),Sector.fromDegrees(-24.0,-23.433333,132.25,133.95));
  layers.add(roads);
  Layer elevation=new ElevationShader();
  layers.add(elevation);
  Layer elevationImage=new ElevationLayer(bem);
  layers.add(elevationImage);
  Landmarks landmarks=new Landmarks(model.getGlobe());
  layers.add(landmarks);
  for (  Layer layer : layers) {
    layer.setEnabled(false);
  }
  depth.setEnabled(true);
  bmng.setEnabled(true);
  landsat.setEnabled(true);
  elevationImage.setEnabled(true);
  crosshair=new CrosshairLayer();
  layers.add(crosshair);
  JPanel bottom=new JPanel(new BorderLayout());
  frame.add(bottom,BorderLayout.SOUTH);
  slider=new FrameSlider(0,0,animation.getFrameCount());
  slider.setMinimumSize(new Dimension(0,54));
  bottom.add(slider,BorderLayout.CENTER);
  slider.addChangeListener(new ChangeListener(){
    public void stateChanged(    ChangeEvent e){
      if (!settingSlider) {
        if (animation.size() > 0) {
          applyView(getView());
          wwd.redraw();
        }
        stop=true;
      }
    }
  }
);
  slider.addChangeFrameListener(new ChangeFrameListener(){
    public void frameChanged(    int index,    int oldFrame,    int newFrame){
      animation.setFrame(index,newFrame);
      updateSlider();
      applyView(getView());
      wwd.redraw();
    }
  }
);
  getView().addPropertyChangeListener(AVKey.VIEW,new PropertyChangeListener(){
    public void propertyChange(    PropertyChangeEvent evt){
      if (autokey && !applying) {
        addFrame();
      }
    }
  }
);
  StatusBar statusBar=new StatusBar();
  statusBar.setBorder(BorderFactory.createLoweredBevelBorder());
  bottom.add(statusBar,BorderLayout.SOUTH);
  statusBar.setEventSource(wwd);
  ToolTipManager.sharedInstance().setLightWeightPopupEnabled(false);
  JPopupMenu.setDefaultLightWeightPopupEnabled(false);
  createMenuBar();
  setTitleBar();
  updateSlider();
  frame.pack();
  frame.setVisible(true);
}

Fixed version (ground truth):
public Animator(){
  Configuration.setValue(AVKey.LAYERS_CLASS_NAMES,"String_Node_Str");
  Configuration.setValue(AVKey.VIEW_CLASS_NAME,BasicRollOrbitView.class.getName());
  Configuration.setValue(AVKey.SCENE_CONTROLLER_CLASS_NAME,AnimatorSceneController.class.getName());
  Configuration.setValue(AVKey.TASK_SERVICE_CLASS_NAME,ImmediateTaskService.class.getName());
  Configuration.setValue(AVKey.RETRIEVAL_SERVICE_CLASS_NAME,ImmediateRetrievalService.class.getName());
  Configuration.setValue(AVKey.TESSELLATOR_CLASS_NAME,ElevationTesselator.class.getName());
  animationChangeListener=new ChangeListener(){
    public void stateChanged(    ChangeEvent e){
      changed=true;
      setTitleBar();
    }
  }
;
  animation=new SimpleAnimation();
  resetChanged();
  updater=new Updater();
  frame=new JFrame();
  frame.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);
  frame.addWindowListener(new WindowAdapter(){
    @Override public void windowClosing(    WindowEvent e){
      quit();
    }
  }
);
  frame.setLayout(new BorderLayout());
  wwd=new WorldWindowGLCanvas(caps);
  Model model=new BasicModel();
  wwd.setModel(model);
  setAnimationSize(1024,576);
  frame.add(wwd,BorderLayout.CENTER);
  ((AWTInputHandler)wwd.getInputHandler()).setSmoothViewChanges(false);
  ((OrbitView)wwd.getView()).getOrbitViewLimits().setPitchLimits(Angle.ZERO,Angle.POS180);
  ocem=new OffsetCompoundElevationModel();
  model.getGlobe().setElevationModel(ocem);
  wwd.getSceneController().setVerticalExaggeration(10);
  LayerList layers=model.getLayers();
  Skybox skybox=new Skybox();
  layers.add(skybox);
  Skysphere skysphere=new Skysphere();
  layers.add(skysphere);
  Layer depth=new DepthLayer();
  layers.add(depth);
  Vec4 direction=new Vec4(0.32,0.9,-0.3,1.0);
  lensFlare=LensFlareLayer.getPresetInstance(LensFlareLayer.PRESET_NOSUN);
  layers.add(lensFlare);
  lensFlare.setSunDistance(lensFlare.getSunDistance() * 100);
  AtmosphereLayer atmosphere=new AtmosphereLayer();
  layers.add(atmosphere);
  lensFlare.setSunDirection(direction);
  atmosphere.setLightDirection(direction);
  SkyGradientLayer sky=new SkyGradientLayer();
  layers.add(sky);
  Color fogColor=new Color(138,82,57);
  FogLayer fog=new FogLayer();
  layers.add(fog);
  fog.setNearFactor(0.8f);
  fog.setFarFactor(0.4f);
  fog.setColor(fogColor);
  bmng=new BMNGWMSLayer();
  layers.add(bmng);
  landsat=new LandsatI3WMSLayer();
  layers.add(landsat);
  String tileDrive="String_Node_Str";
  ElevationModel earthem=new ExtendedBasicElevationModelFactory().createFromConfigFile("String_Node_Str");
  ExtendedBasicElevationModel eem=getEBEM(earthem);
  ExtendedBasicElevationModel bem=FileLayer.createElevationModel("String_Node_Str","String_Node_Str",new File(tileDrive + "String_Node_Str"),7,150,LatLon.fromDegrees(20d,20d),Sector.fromDegrees(-59.99875,-7.99875,91.99875,171.99875),-8922,3958);
  bem.setMissingDataSignal(-32768);
  ocem.addElevationModel(eem);
  ocem.addElevationModel(bem);
  map1=FileLayer.createLayer("String_Node_Str","String_Node_Str","String_Node_Str",new File(tileDrive + "String_Node_Str"),"String_Node_Str",13,LatLon.fromDegrees(36d,36d),Sector.fromDegrees(-24.0536281,-23.4102781,132.0746805,133.9779805));
  layers.add(map1);
  map2=FileLayer.createLayer("String_Node_Str","String_Node_Str","String_Node_Str",new File(tileDrive + "String_Node_Str"),"String_Node_Str",13,LatLon.fromDegrees(36d,36d),Sector.fromDegrees(-24.0544889,-23.4081639,132.0708833,133.9771083));
  layers.add(map2);
  alos=FileLayer.createLayer("String_Node_Str","String_Node_Str","String_Node_Str",new File(tileDrive + "String_Node_Str"),"String_Node_Str",new File(tileDrive + "String_Node_Str"),"String_Node_Str",13,LatLon.fromDegrees(36d,36d),Sector.fromDegrees(-24.0,-23.433333,132.25,133.95));
  layers.add(alos);
  roads=FileLayer.createLayer("String_Node_Str","String_Node_Str","String_Node_Str",new File(tileDrive + "String_Node_Str"),"String_Node_Str",12,LatLon.fromDegrees(36d,36d),Sector.fromDegrees(-24.0,-23.433333,132.25,133.95));
  layers.add(roads);
  Layer elevation=new ElevationShader();
  layers.add(elevation);
  final ElevationLayer elevationImage=new ElevationLayer(bem);
  elevationImage.setSunPosition(new Vec4(0.61,0.42,-0.67));
  elevationImage.setExaggeration(50);
  elevationImage.setSplitScale(1.2);
  layers.add(elevationImage);
  Landmarks landmarks=new Landmarks(model.getGlobe());
  layers.add(landmarks);
  for (  Layer layer : layers) {
    layer.setEnabled(false);
  }
  depth.setEnabled(true);
  bmng.setEnabled(true);
  landsat.setEnabled(true);
  elevationImage.setEnabled(true);
  crosshair=new CrosshairLayer();
  layers.add(crosshair);
  JPanel bottom=new JPanel(new BorderLayout());
  frame.add(bottom,BorderLayout.SOUTH);
  slider=new FrameSlider(0,0,animation.getFrameCount());
  slider.setMinimumSize(new Dimension(0,54));
  bottom.add(slider,BorderLayout.CENTER);
  slider.addChangeListener(new ChangeListener(){
    public void stateChanged(    ChangeEvent e){
      if (!settingSlider) {
        if (animation.size() > 0) {
          applyView(getView());
          wwd.redraw();
        }
        stop=true;
      }
    }
  }
);
  slider.addChangeFrameListener(new ChangeFrameListener(){
    public void frameChanged(    int index,    int oldFrame,    int newFrame){
      animation.setFrame(index,newFrame);
      updateSlider();
      applyView(getView());
      wwd.redraw();
    }
  }
);
  getView().addPropertyChangeListener(AVKey.VIEW,new PropertyChangeListener(){
    public void propertyChange(    PropertyChangeEvent evt){
      if (autokey && !applying) {
        addFrame();
      }
    }
  }
);
  StatusBar statusBar=new StatusBar();
  statusBar.setBorder(BorderFactory.createLoweredBevelBorder());
  bottom.add(statusBar,BorderLayout.SOUTH);
  statusBar.setEventSource(wwd);
  ToolTipManager.sharedInstance().setLightWeightPopupEnabled(false);
  JPopupMenu.setDefaultLightWeightPopupEnabled(false);
  createMenuBar();
  setTitleBar();
  updateSlider();
  frame.pack();
  frame.setVisible(true);
  JFrame exaggeration=new JFrame("String_Node_Str");
  exaggeration.setLayout(new GridLayout(0,1));
  JSlider slider;
  slider=new JSlider(0,100,(int)wwd.getSceneController().getVerticalExaggeration());
  exaggeration.add(slider);
  slider.addChangeListener(new ChangeListener(){
    public void stateChanged(    ChangeEvent e){
      int value=((JSlider)e.getSource()).getValue();
      Configuration.setValue(AVKey.VERTICAL_EXAGGERATION,(double)value);
      wwd.getSceneController().setVerticalExaggeration(value);
      wwd.redraw();
    }
  }
);
  slider=new JSlider(0,100,(int)elevationImage.getExaggeration());
  exaggeration.add(slider);
  slider.addChangeListener(new ChangeListener(){
    public void stateChanged(    ChangeEvent e){
      int value=((JSlider)e.getSource()).getValue();
      elevationImage.setExaggeration(value);
      wwd.redraw();
    }
  }
);
  slider=new JSlider(-1000,1000,(int)(elevationImage.getSunPosition().x * 1000));
  exaggeration.add(slider);
  slider.addChangeListener(new ChangeListener(){
    public void stateChanged(    ChangeEvent e){
      int value=((JSlider)e.getSource()).getValue();
      Vec4 pos=elevationImage.getSunPosition();
      pos=new Vec4(value / 1000d,pos.y,pos.z);
      elevationImage.setSunPosition(pos);
      wwd.redraw();
    }
  }
);
  slider=new JSlider(-1000,1000,(int)(elevationImage.getSunPosition().y * 1000));
  exaggeration.add(slider);
  slider.addChangeListener(new ChangeListener(){
    public void stateChanged(    ChangeEvent e){
      int value=((JSlider)e.getSource()).getValue();
      Vec4 pos=elevationImage.getSunPosition();
      pos=new Vec4(pos.x,value / 1000d,pos.z);
      elevationImage.setSunPosition(pos);
      wwd.redraw();
    }
  }
);
  slider=new JSlider(-1000,1000,(int)(elevationImage.getSunPosition().z * 1000));
  exaggeration.add(slider);
  slider.addChangeListener(new ChangeListener(){
    public void stateChanged(    ChangeEvent e){
      int value=((JSlider)e.getSource()).getValue();
      Vec4 pos=elevationImage.getSunPosition();
      pos=new Vec4(pos.x,pos.y,value / 1000d);
      elevationImage.setSunPosition(pos);
      wwd.redraw();
    }
  }
);
  exaggeration.setSize(640,200);
  exaggeration.setVisible(true);
}