Commit 05fe8ea
committed
Fix NPE in SimpleDataSourceProperties when driver is null
- Prevent NullPointerException in SimpleDataSourceProperties by adding null check before calling getDriver().getClass().
- Fixes potential crash when driver is not explicitly configured.
Signed-off-by: chanbinme <[email protected]>1 parent 1ae0548 commit 05fe8ea
File tree
1 file changed
+2
-1
lines changed- spring-boot-project/spring-boot/src/main/java/org/springframework/boot/jdbc
1 file changed
+2
-1
lines changedspring-boot-project/spring-boot/src/main/java/org/springframework/boot/jdbc/DataSourceBuilder.java
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
712 | 712 | | |
713 | 713 | | |
714 | 714 | | |
715 | | - | |
| 715 | + | |
| 716 | + | |
716 | 717 | | |
717 | 718 | | |
718 | 719 | | |
| |||
0 commit comments