Skip to content

Conversation

@vardumper
Copy link

@vardumper vardumper commented Dec 27, 2025

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

@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
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.

2 participants