#vulnerable code 
                              @ManagedMetric(description = "Total RAM assigned")
  public long getTotalRAMAssigned() {
    return (Long) parseStorageTotals().get("ram").get("total");
  } 
                            #location 3 
                            #vulnerability type NULL_DEREFERENCE
#fixed code
                              @ManagedMetric(description = "Total RAM assigned")
  public long getTotalRAMAssigned() {
    return convertPotentialLong(parseStorageTotals().get("ram").get("total"));
  }