Commit 3114460
committed
fix(archive_local_ads): ensure proper null checks for state properties
- Update the ArchiveLocalAdsState.copyWith constructor to properly handle null values for exception, restoredLocalAd, lastPendingDeletionId, and snackbarLocalAdTitle properties.
- This change prevents potential null dereference errors when these properties are not explicitly provided when copying the state.1 parent afc4300 commit 3114460
File tree
1 file changed
+4
-4
lines changed- lib/local_ads_management/bloc/archive_local_ads
1 file changed
+4
-4
lines changedLines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
| |||
0 commit comments