Skip to content

[Bug]: Fix data is null when forced in Core Cache Handler#18804

Merged
kingjia90 merged 5 commits into11.5from
nullable-data-core-cache
Nov 5, 2025
Merged

[Bug]: Fix data is null when forced in Core Cache Handler#18804
kingjia90 merged 5 commits into11.5from
nullable-data-core-cache

Conversation

@kingjia90
Copy link
Copy Markdown
Contributor

@kingjia90 kingjia90 commented Nov 5, 2025

Changes in this pull request

Resolves #18782

Additional info

$data could be null, if it was effectively deleted before

default => null,
causing Uncaught PHP Exception Error: "Call to a member function __isBasedOnLatestData() on null" at CoreCacheHandler.php line 464.

@kingjia90 kingjia90 added this to the 11.5.13 milestone Nov 5, 2025
@kingjia90 kingjia90 self-assigned this Nov 5, 2025
@github-actions
Copy link
Copy Markdown

github-actions bot commented Nov 5, 2025

Review Checklist

  • Target branch (11.5 for bug fixes, others 11.x)
  • Tests (if it's testable code, there should be a test for it - get help)
  • Docs (every functionality needs to be documented, see here)
  • Migration incl. install.sql (e.g. if the database schema changes, ...)
  • Upgrade notes (deprecations, important information, migration hints, ...)
  • Label
  • Milestone

@kingjia90 kingjia90 linked an issue Nov 5, 2025 that may be closed by this pull request
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Nov 5, 2025

@kingjia90 kingjia90 changed the title [Bug]: Fix null coalescing operator usage in cache handler [Bug]: Fix data is null when forced in Core Cache Handler Nov 5, 2025
@kingjia90 kingjia90 merged commit 0d4487c into 11.5 Nov 5, 2025
27 checks passed
@kingjia90 kingjia90 deleted the nullable-data-core-cache branch November 5, 2025 12:07
@github-actions github-actions bot locked and limited conversation to collaborators Nov 5, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: PHP execution exception (null pointer) in CoreCacheHandler

1 participant