Program: 35412
Project: 35412
Buggy source:
public static List<AlgoHelperEntry> createAlgos(final GraphHopper hopper,final HintsMap hints,TraversalMode tMode){
  GraphHopperStorage ghStorage=hopper.getGraphHopperStorage();
  LocationIndex idx=hopper.getLocationIndex();
  String addStr="String_Node_Str";
  if (tMode.isEdgeBased())   addStr="String_Node_Str";
  FlagEncoder encoder=hopper.getEncodingManager().getEncoder(hints.getVehicle());
  Weighting weighting=hopper.createWeighting(hints,encoder,hopper.getGraphHopperStorage());
  HintsMap defaultHints=new HintsMap().put(Parameters.CH.DISABLE,true).put(Parameters.Landmark.DISABLE,true).setVehicle(hints.getVehicle()).setWeighting(hints.getWeighting());
  AlgorithmOptions defaultOpts=AlgorithmOptions.start(new AlgorithmOptions("String_Node_Str",weighting,tMode)).hints(defaultHints).build();
  List<AlgoHelperEntry> prepare=new ArrayList<>();
  prepare.add(new AlgoHelperEntry(ghStorage,AlgorithmOptions.start(defaultOpts).algorithm(ASTAR).build(),idx,"String_Node_Str" + addStr + weighting));
  prepare.add(new AlgoHelperEntry(ghStorage,AlgorithmOptions.start(defaultOpts).algorithm(DIJKSTRA).build(),idx,"String_Node_Str" + addStr + weighting));
  AlgorithmOptions astarbiOpts=AlgorithmOptions.start(defaultOpts).algorithm(ASTAR_BI).build();
  astarbiOpts.getHints().put(ASTAR_BI + "String_Node_Str","String_Node_Str");
  AlgorithmOptions dijkstrabiOpts=AlgorithmOptions.start(defaultOpts).algorithm(DIJKSTRA_BI).build();
  prepare.add(new AlgoHelperEntry(ghStorage,astarbiOpts,idx,"String_Node_Str" + addStr + weighting));
  prepare.add(new AlgoHelperEntry(ghStorage,dijkstrabiOpts,idx,"String_Node_Str" + addStr + weighting));
  if (hopper.getLMFactoryDecorator().isEnabled()) {
    final HintsMap lmHints=new HintsMap(defaultHints).put(Parameters.Landmark.DISABLE,false);
    prepare.add(new AlgoHelperEntry(ghStorage,AlgorithmOptions.start(astarbiOpts).hints(lmHints).build(),idx,"String_Node_Str" + weighting){
      @Override public RoutingAlgorithmFactory createRoutingFactory(){
        return hopper.getAlgorithmFactory(lmHints);
      }
    }
);
  }
  if (hopper.getCHFactoryDecorator().isEnabled()) {
    final HintsMap chHints=new HintsMap(defaultHints).put(Parameters.CH.DISABLE,false);
    Weighting pickedWeighting=null;
    for (    Weighting tmpWeighting : hopper.getCHFactoryDecorator().getWeightings()) {
      if (tmpWeighting.equals(weighting)) {
        pickedWeighting=tmpWeighting;
        break;
      }
    }
    if (pickedWeighting == null)     throw new IllegalStateException("String_Node_Str" + hints.getWeighting() + "String_Node_Str"+ hopper.getCHFactoryDecorator().getWeightings());
    prepare.add(new AlgoHelperEntry(ghStorage.getGraph(CHGraph.class,pickedWeighting),AlgorithmOptions.start(dijkstrabiOpts).hints(chHints).build(),idx,"String_Node_Str" + hints.getWeighting()){
      @Override public RoutingAlgorithmFactory createRoutingFactory(){
        return hopper.getAlgorithmFactory(chHints);
      }
    }
);
    prepare.add(new AlgoHelperEntry(ghStorage.getGraph(CHGraph.class,pickedWeighting),AlgorithmOptions.start(astarbiOpts).hints(chHints).build(),idx,"String_Node_Str" + hints.getWeighting()){
      @Override public RoutingAlgorithmFactory createRoutingFactory(){
        return hopper.getAlgorithmFactory(chHints);
      }
    }
);
  }
  return prepare;
}

Fixed version (ground truth):
public static List<AlgoHelperEntry> createAlgos(final GraphHopper hopper,final HintsMap hints,TraversalMode tMode){
  GraphHopperStorage ghStorage=hopper.getGraphHopperStorage();
  LocationIndex idx=hopper.getLocationIndex();
  String addStr="String_Node_Str";
  if (tMode.isEdgeBased())   addStr="String_Node_Str";
  FlagEncoder encoder=hopper.getEncodingManager().getEncoder(hints.getVehicle());
  Weighting weighting=hopper.createWeighting(hints,hopper.getTraversalMode(),encoder,hopper.getGraphHopperStorage());
  HintsMap defaultHints=new HintsMap().put(Parameters.CH.DISABLE,true).put(Parameters.Landmark.DISABLE,true).setVehicle(hints.getVehicle()).setWeighting(hints.getWeighting());
  AlgorithmOptions defaultOpts=AlgorithmOptions.start(new AlgorithmOptions("String_Node_Str",weighting,tMode)).hints(defaultHints).build();
  List<AlgoHelperEntry> prepare=new ArrayList<>();
  prepare.add(new AlgoHelperEntry(ghStorage,AlgorithmOptions.start(defaultOpts).algorithm(ASTAR).build(),idx,"String_Node_Str" + addStr + weighting));
  prepare.add(new AlgoHelperEntry(ghStorage,AlgorithmOptions.start(defaultOpts).algorithm(DIJKSTRA).build(),idx,"String_Node_Str" + addStr + weighting));
  AlgorithmOptions astarbiOpts=AlgorithmOptions.start(defaultOpts).algorithm(ASTAR_BI).build();
  astarbiOpts.getHints().put(ASTAR_BI + "String_Node_Str","String_Node_Str");
  AlgorithmOptions dijkstrabiOpts=AlgorithmOptions.start(defaultOpts).algorithm(DIJKSTRA_BI).build();
  prepare.add(new AlgoHelperEntry(ghStorage,astarbiOpts,idx,"String_Node_Str" + addStr + weighting));
  prepare.add(new AlgoHelperEntry(ghStorage,dijkstrabiOpts,idx,"String_Node_Str" + addStr + weighting));
  if (hopper.getLMFactoryDecorator().isEnabled()) {
    final HintsMap lmHints=new HintsMap(defaultHints).put(Parameters.Landmark.DISABLE,false);
    prepare.add(new AlgoHelperEntry(ghStorage,AlgorithmOptions.start(astarbiOpts).hints(lmHints).build(),idx,"String_Node_Str" + weighting){
      @Override public RoutingAlgorithmFactory createRoutingFactory(){
        return hopper.getAlgorithmFactory(lmHints);
      }
    }
);
  }
  if (hopper.getCHFactoryDecorator().isEnabled()) {
    final HintsMap chHints=new HintsMap(defaultHints).put(Parameters.CH.DISABLE,false);
    Weighting pickedWeighting=null;
    for (    Weighting tmpWeighting : hopper.getCHFactoryDecorator().getWeightings()) {
      if (tmpWeighting.equals(weighting)) {
        pickedWeighting=tmpWeighting;
        break;
      }
    }
    if (pickedWeighting == null)     throw new IllegalStateException("String_Node_Str" + hints.getWeighting() + "String_Node_Str"+ hopper.getCHFactoryDecorator().getWeightings());
    prepare.add(new AlgoHelperEntry(ghStorage.getGraph(CHGraph.class,pickedWeighting),AlgorithmOptions.start(dijkstrabiOpts).hints(chHints).build(),idx,"String_Node_Str" + hints.getWeighting()){
      @Override public RoutingAlgorithmFactory createRoutingFactory(){
        return hopper.getAlgorithmFactory(chHints);
      }
    }
);
    prepare.add(new AlgoHelperEntry(ghStorage.getGraph(CHGraph.class,pickedWeighting),AlgorithmOptions.start(astarbiOpts).hints(chHints).build(),idx,"String_Node_Str" + hints.getWeighting()){
      @Override public RoutingAlgorithmFactory createRoutingFactory(){
        return hopper.getAlgorithmFactory(chHints);
      }
    }
);
  }
  return prepare;
}