#fixed code
                              @Test(expected = ReflectionException.class)
  public void shouldFailSetter() {
    PojoField pojoField = getPrivateStringField();
    assert pojoField != null;
    pojoField.invokeSetter(null, RandomFactory.getRandomValue(pojoField.getType()));
  }
#vulnerable code 
                              @Test(expected = ReflectionException.class)
  public void shouldFailSetter() {
    PojoField pojoField = getPrivateStringField();
    pojoField.invokeSetter(null, RandomFactory.getRandomValue(pojoField.getType()));
  } 
                            #location 4 
                            #vulnerability type NULL_DEREFERENCE