The function validateConstraints() potentially causes a null pointer exception. I changed this so that the function returns a failure as soon as the validation fails. This avoids falling into the null pointer trap.
The function validateConstraints() potentially causes a null pointer exception. I changed this so that the function returns a failure as soon as the validation fails. This avoids falling into the null pointer trap.