Commit 843d665
fix: guard createInstanceFromRow against null/undefined input
The all-collections-methods-coverage smoke test invokes every public
method including createInstanceFromRow (starts with 'create', treated as
mutating). With no args the call reached fromDbRecord(undefined) and
threw a TypeError that didn't match the expected-error patterns, failing
all 36 collection smoke tests.
Add an isNonEmptyObject guard so the method returns null gracefully
instead of throwing — consistent with #createInstance's own null-return
contract for empty records.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 84c1fd1 commit 843d665
File tree
1 file changed
+1
-0
lines changed1 file changed
+1
-0
lines changedLines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
595 | 595 | | |
596 | 596 | | |
597 | 597 | | |
| 598 | + | |
598 | 599 | | |
599 | 600 | | |
600 | 601 | | |
| |||
0 commit comments