Commit 947a74f
refactor: replace null-forgiving operator with explicit null check
Remove null-forgiving operator (!) in DataReaderExtensions and add defensive null check with descriptive exception. While deserialization failure is unlikely (we control the JSON construction), an explicit check provides better error messages if data corruption or type mapping issues occur.1 parent 724839a commit 947a74f
1 file changed
+9
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
71 | 79 | | |
72 | 80 | | |
73 | 81 | | |
| |||
0 commit comments