Commit 3fc0851
committed
Guard potential null dereference in recursive initialization calls.
We now assign the repository field before resolving the persistent entity through the mapping context to avoid a potential NPE caused by a getObject(…) invocation through an application event.
Closes #20681 parent 07dad67 commit 3fc0851
File tree
1 file changed
+2
-2
lines changed- src/main/java/org/springframework/data/repository/core/support
1 file changed
+2
-2
lines changedLines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
291 | 291 | | |
292 | 292 | | |
293 | 293 | | |
| 294 | + | |
| 295 | + | |
294 | 296 | | |
295 | 297 | | |
296 | 298 | | |
297 | | - | |
298 | | - | |
299 | 299 | | |
300 | 300 | | |
301 | 301 | | |
| |||
0 commit comments