Null reference error while calling unslectable method #5460
Labels
resolution:expired
Issue reporter did not provide enough information to reproduce the issue for at least 2 weeks.
stale
The issue / PR will be closed within the next 7 days of inactivity.
type:bug
A bug.
Type of report
Bug
Provide detailed reproduction steps (if any)
When CKEDITOR.replace method is called some times it is giving null exception for calling unselectable method.
Please find below error:
ckeditor.js?v=xxxxxx:372 Uncaught TypeError: Cannot read properties of null (reading 'unselectable')
at b (ckeditor.js?v=xxxxxx:372:391)
at a. (ckeditor.js?v=xxxxxx:368:471)
at a.r (ckeditor.js?v=xxxxxx:10:246)
at a. (ckeditor.js?v=xxxxxx:12:91)
at a.CKEDITOR.editor.CKEDITOR.editor.fire (ckeditor.js?v=xxxxxx:13:286)
at a.fireOnce (ckeditor.js?v=xxxxxx:12:251)
at a.CKEDITOR.editor.CKEDITOR.editor.fireOnce (ckeditor.js?v=xxxxxx:13:442)
at Object. (ckeditor.js?v=xxxxxx:283:139)
at w (ckeditor.js?v=xxxxxx:261:193)
at Object.load (ckeditor.js?v=xxxxxx:261:216)
In some system this is frequent issue 1 time out of 4 attempts while other systems it is reproducing rarely like 1 time out of 50 attempts.
Expected result
There should a null check in method b before calling unselectable method
Actual result
If the element does not found then calling unselectable on null throws exception in console.
Other details
The text was updated successfully, but these errors were encountered: