HHH-9166 handle nested exceptions with TemplatedViolatedConstraintNameExtracte - fixed bad braces

This commit is contained in:
Steve Ebersole 2015-07-06 11:00:16 -05:00
parent aa0aa0bc39
commit 8e2d1a12ae
1 changed files with 4 additions and 2 deletions

View File

@ -28,13 +28,15 @@ public abstract class TemplatedViolatedConstraintNameExtracter implements Violat
if (sqle.getNextException() == null
|| sqle.getNextException() == sqle) {
break;
} else {
}
else {
sqle = sqle.getNextException();
}
} while (constraintName == null);
return constraintName;
} catch (NumberFormatException nfe) {
}
catch (NumberFormatException nfe) {
return null;
}
}