Skip to content

fix: NPE when web push subscription is expired#24310

Merged
mcollovati merged 1 commit into
mainfrom
issues/24306-webpus_npe
May 11, 2026
Merged

fix: NPE when web push subscription is expired#24310
mcollovati merged 1 commit into
mainfrom
issues/24306-webpus_npe

Conversation

@mcollovati
Copy link
Copy Markdown
Collaborator

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
@mcollovati mcollovati added target/25.0 Cherry-pick to 25.0 branch target/25.1 labels May 9, 2026
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented May 9, 2026

@github-actions github-actions Bot added the +0.0.1 label May 9, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 9, 2026

Test Results

 1 406 files  +1   1 406 suites  +1   1h 30m 22s ⏱️ + 7m 9s
10 139 tests +2  10 069 ✅ +2  70 💤 ±0  0 ❌ ±0 
10 614 runs  +2  10 535 ✅ +2  79 💤 ±0  0 ❌ ±0 

Results for commit 11b68bb. ± Comparison against base commit ba7d3cb.

@mcollovati mcollovati added this pull request to the merge queue May 11, 2026
Merged via the queue into main with commit 32183d1 May 11, 2026
31 checks passed
@mcollovati mcollovati deleted the issues/24306-webpus_npe branch May 11, 2026 07:14
vaadin-bot added a commit that referenced this pull request May 11, 2026
…24316)

This PR cherry-picks changes from the original PR #24310 to branch 25.1.
---
#### 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
>

Co-authored-by: Marco Collovati <marco@vaadin.com>
vaadin-bot added a commit that referenced this pull request May 11, 2026
…24317)

This PR cherry-picks changes from the original PR #24310 to branch 25.0.
---
#### 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
>

---------

Co-authored-by: Marco Collovati <marco@vaadin.com>
@vaadin-bot
Copy link
Copy Markdown
Collaborator

This ticket/PR has been released with Vaadin 25.2.0-alpha7.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

com.vaadin.flow.server.webpush.WebPush.java#L125 is NPE ("response" is null) instead of WebPushException

3 participants