Skip to content

fix: BaseRichText.getData() null safety#1807

Open
vardumper wants to merge 1 commit into
ibexa:5.0from
vardumper:feature/prevent-call-to-getData-on-uninitialized-editor
Open

fix: BaseRichText.getData() null safety#1807
vardumper wants to merge 1 commit into
ibexa:5.0from
vardumper:feature/prevent-call-to-getData-on-uninitialized-editor

Conversation

@vardumper

@vardumper vardumper commented Dec 27, 2025

Copy link
Copy Markdown

Added an early return to prevent null reference errors on getData call when editor is not initialized yet

I saw this behaviour:
RichText validators were created before CKEditor instances finished initializing
During publishing validation, this.richtextEditor.getData() failed because this.editor was still null

@sonarqubecloud

Copy link
Copy Markdown

@vardumper vardumper changed the title fix: early return added to prevent null reference errors on getData calls fix: BaseRichText.getData() null safety Dec 27, 2025
@ibexa-yuna ibexa-yuna deleted the branch ibexa:5.0 April 29, 2026 08:11
@ibexa-yuna ibexa-yuna closed this Apr 29, 2026
@mnocon mnocon reopened this Apr 29, 2026
@sonarqubecloud

Copy link
Copy Markdown

@mnocon mnocon changed the base branch from main to 5.0 April 29, 2026 09:36
@mnocon

mnocon commented Apr 29, 2026

Copy link
Copy Markdown
Contributor

Hi! During the rename of main branch to 6.0, this PR was closed accidentally - I'm sorry about that.

I've reopened it, and set it to target the 5.0 branch - corresponding to the v5 version.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants