Commit a3d01cb
Replace catch(NullReferenceException) with IsDefaultOrEmpty guard in AttributeDataExtensions
The NamedArguments property returns a default ImmutableArray when attribute data is
incomplete/malformed at analysis time. Guard with .IsDefaultOrEmpty before iterating
rather than swallowing NullReferenceException, which could mask real Roslyn API bugs.
Agent-Logs-Url: https://github.com/reactiveui/ReactiveUI.SourceGenerators/sessions/7c58663a-a9ce-4cfa-a3ff-9a57bc0347a9
Co-authored-by: ChrisPulman <4910015+ChrisPulman@users.noreply.github.com>1 parent 446665e commit a3d01cb
1 file changed
Lines changed: 6 additions & 8 deletions
Lines changed: 6 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
41 | 43 | | |
42 | 44 | | |
43 | 45 | | |
| |||
47 | 49 | | |
48 | 50 | | |
49 | 51 | | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | 52 | | |
54 | 53 | | |
55 | 54 | | |
| |||
70 | 69 | | |
71 | 70 | | |
72 | 71 | | |
73 | | - | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
74 | 75 | | |
75 | 76 | | |
76 | 77 | | |
| |||
80 | 81 | | |
81 | 82 | | |
82 | 83 | | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | 84 | | |
87 | 85 | | |
88 | 86 | | |
| |||
0 commit comments