Commit 2f6ec9b
committed
Account for potentially nullable
With the `AttributeBindingModel.Value` now allowing null values (63e8b40), we need to account for that to prevent a null reference exception. With the `Key` setting, we assume a `Value` exists, as `Key` should always be `IsRequired`.
With relationships, we do the same thing, as while relationships aren't required, we expect an empty value if no relationships are being submitted; if that isn't true, that's a sign of a model binding issue, and should result in an exception.AttributeBindingModel.Value
1 parent 63e8b40 commit 2f6ec9b
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
438 | 438 | | |
439 | 439 | | |
440 | 440 | | |
441 | | - | |
| 441 | + | |
442 | 442 | | |
443 | 443 | | |
444 | 444 | | |
| |||
471 | 471 | | |
472 | 472 | | |
473 | 473 | | |
474 | | - | |
| 474 | + | |
475 | 475 | | |
476 | 476 | | |
477 | 477 | | |
| |||
0 commit comments