#fixed code
                              public void setRequestedState(String partitionName, String state) {
    setProperty(partitionName, CurrentStateProperty.REQUESTED_STATE, state);
  }
#vulnerable code 
                              public void setRequestedState(String partitionName, String state) {
    Map<String, Map<String, String>> mapFields = _record.getMapFields();
    if (mapFields.get(partitionName) == null) {
      mapFields.put(partitionName, new TreeMap<String, String>());
    }
    mapFields.get(partitionName).put(CurrentStateProperty.REQUESTED_STATE.name(), state);
  } 
                            #location 6 
                            #vulnerability type NULL_DEREFERENCE