Skip to content

fix: NPE when web push subscription is expired (CP: 24.10) (#24311) (CP: 24.9)#24319

Merged
mshabarov merged 1 commit into
24.9from
cherry-pick-24311-to-24.9-1778498136227
May 11, 2026
Merged

fix: NPE when web push subscription is expired (CP: 24.10) (#24311) (CP: 24.9)#24319
mshabarov merged 1 commit into
24.9from
cherry-pick-24311-to-24.9-1778498136227

Conversation

@vaadin-bot
Copy link
Copy Markdown
Collaborator

This PR cherry-picks changes from the original PR #24311 to branch 24.9.

Original PR description

When the push service reports a subscription as expired, WebPush.sendNotification threw NullPointerException instead of the intended WebPushException.

Remove a leftover reference to an unassigned HttpResponse local variable that was no longer populated after the migration to com.interaso.webpush.

Fixes #24306

When the push service reports a subscription as expired,
`WebPush.sendNotification` threw `NullPointerException` instead of the
intended `WebPushException`.

Remove a leftover reference to an unassigned `HttpResponse` local
variable that was no longer populated after the migration to
`com.interaso.webpush`.

Fixes #24306
@mshabarov mshabarov enabled auto-merge (squash) May 11, 2026 11:17
@vaadin-bot
Copy link
Copy Markdown
Collaborator Author

This PR is eligible for auto-merging policy, so it has been approved automatically. If there are pending conditions, auto merge (with 'squash' method) has been enabled for this PR [Message is sent from bot]

@vaadin-bot
Copy link
Copy Markdown
Collaborator Author

This PR is eligible for auto-merging policy, so it has been approved automatically. If there are pending conditions, auto merge (with 'squash' method) has been enabled for this PR[Message is sent from bot]

@sonarqubecloud
Copy link
Copy Markdown

@github-actions
Copy link
Copy Markdown

Test Results

1 289 files  +1  1 289 suites  +1   1h 12m 15s ⏱️ - 3m 5s
8 902 tests +2  8 840 ✅ +2  62 💤 ±0  0 ❌ ±0 
9 236 runs  +4  9 169 ✅ +5  67 💤  - 1  0 ❌ ±0 

Results for commit 50f556a. ± Comparison against base commit 24367bf.

@mshabarov mshabarov merged commit 3a4baf3 into 24.9 May 11, 2026
27 of 28 checks passed
@mshabarov mshabarov deleted the cherry-pick-24311-to-24.9-1778498136227 branch May 11, 2026 11:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants