We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4454f17 commit 0325cd6Copy full SHA for 0325cd6
hibernate-core/src/main/java/org/hibernate/exception/internal/StandardSQLExceptionConverter.java
@@ -20,13 +20,15 @@
20
*/
21
public class StandardSQLExceptionConverter implements SQLExceptionConverter {
22
23
- private final ArrayList<SQLExceptionConversionDelegate> delegates = new ArrayList<SQLExceptionConversionDelegate>(4);
+ private final ArrayList<SQLExceptionConversionDelegate> delegates = new ArrayList<>();
24
25
public StandardSQLExceptionConverter() {
26
}
27
28
public void addDelegate(SQLExceptionConversionDelegate delegate) {
29
- this.delegates.add( delegate );
+ if ( delegate != null ) {
30
+ this.delegates.add( delegate );
31
+ }
32
33
34
@Override
0 commit comments