Skip to content

Commit 4c8a09c

Browse files
committed
fix(push-notification): Add non-null assertion for notification client
- Ensure that the `client` is not null before calling `sendBulkNotifications` - This change improves the robustness of the push notification service
1 parent ca6a510 commit 4c8a09c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/services/push_notification_service.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ class DefaultPushNotificationService implements IPushNotificationService {
244244
final sendFutures = notificationsToCreate.map((notification) {
245245
final userDeviceTokens =
246246
userDeviceTokensMapForSending[notification.userId] ?? [];
247-
return client
247+
return client!
248248
.sendBulkNotifications(
249249
deviceTokens: userDeviceTokens,
250250
payload: notification.payload,

0 commit comments

Comments
 (0)