Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 00e3d57

Browse files
committed
Merge pull request #988 from dertalai/7.2.x
Fix java.lang.NullPointerException when incorrect schema in database. (cherry picked from commit eff81e5)
1 parent 22a7455 commit 00e3d57

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

grails-datastore-gorm-hibernate/src/main/groovy/org/grails/orm/hibernate/cfg/GrailsDomainBinder.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1505,15 +1505,15 @@ else if(tablePerConcreteClass) {
15051505
configureDerivedProperties(sub, subMapping);
15061506
}
15071507
}
1508-
Integer bs = m.getBatchSize();
1508+
Integer bs = (m == null) ? null : m.getBatchSize();
15091509
if (bs != null) {
15101510
subClass.setBatchSize(bs);
15111511
}
15121512

1513-
if (m.getDynamicUpdate()) {
1513+
if (m != null && m.getDynamicUpdate()) {
15141514
subClass.setDynamicUpdate(true);
15151515
}
1516-
if (m.getDynamicInsert()) {
1516+
if (m != null && m.getDynamicInsert()) {
15171517
subClass.setDynamicInsert(true);
15181518
}
15191519

0 commit comments

Comments
 (0)