#fixed code
                              @Test
  public void testConfigure2() throws Exception {
    double epsilon = 0.000000000000001 ;
    Settings nsgaIISettings = new NSGAIIBinarySettings("ZDT5");
    NSGAII algorithm = (NSGAII)nsgaIISettings.configure(configuration_) ;
    Problem problem = new ZDT5("Binary") ;

    SinglePointCrossover crossover =  (SinglePointCrossover) algorithm.getCrossoverOperator() ;
    double pc = crossover.getCrossoverProbability() ;
    BitFlipMutation mutation = (BitFlipMutation)algorithm.getMutationOperator() ;
    double pm = mutation.getMutationProbability() ;

    assertEquals("NSGAIIBinary_SettingsTest", 100, algorithm.getPopulationSize());
    assertEquals("NSGAIIBinary_SettingsTest", 25000, algorithm.getMaxEvaluations()) ;

    assertEquals("NSGAIIBinary_SettingsTest", 0.9, pc, epsilon);
    assertEquals("NSGAIIBinary_SettingsTest", 1.0/problem.getNumberOfBits(), pm, epsilon);
  }
#vulnerable code 
                              @Test
  public void testConfigure2() throws Exception {
    double epsilon = 0.000000000000001 ;
    Settings nsgaIISettings = new NSGAIIBinarySettings("ZDT5");
    Algorithm algorithm = nsgaIISettings.configure(configuration_) ;
    Problem problem = new ZDT5("Binary") ;

    SinglePointCrossover crossover = (SinglePointCrossover)algorithm.getOperator("crossover") ;
    double pc = (Double)crossover.getParameter("probability") ;
    BitFlipMutation mutation = (BitFlipMutation)algorithm.getOperator("mutation") ;
    double pm = (Double)mutation.getParameter("probability") ;

    assertEquals("NSGAIIBinary_SettingsTest", 100, ((Integer)algorithm.getInputParameter("populationSize")).intValue());
    assertEquals("NSGAIIBinary_SettingsTest", 25000, ((Integer)algorithm.getInputParameter("maxEvaluations")).intValue());

    assertEquals("NSGAIIBinary_SettingsTest", 0.9, pc, epsilon);
    assertEquals("NSGAIIBinary_SettingsTest", 1.0/problem.getNumberOfBits(), pm, epsilon);
  } 
                            #location 8 
                            #vulnerability type NULL_DEREFERENCE