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 if (sqle.getNextException() == null
|| sqle.getNextException() == sqle) { || sqle.getNextException() == sqle) {
break; break;
} else { }
else {
sqle = sqle.getNextException(); sqle = sqle.getNextException();
} }
} while (constraintName == null); } while (constraintName == null);
return constraintName; return constraintName;
} catch (NumberFormatException nfe) { }
catch (NumberFormatException nfe) {
return null; return null;
} }
} }