Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Null reference error while calling unslectable method #5460

Closed
pankaj5080 opened this issue Apr 17, 2023 · 3 comments
Closed

Null reference error while calling unslectable method #5460

pankaj5080 opened this issue Apr 17, 2023 · 3 comments
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.

Comments

@pankaj5080
Copy link

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

  • Browser: chrome
  • OS: windows
  • CKEditor version: 4.20
@pankaj5080 pankaj5080 added the type:bug A bug. label Apr 17, 2023
@Comandeer
Copy link
Member

It looks similar to #4390. Such an issue could be resolved by using the delayed editor creation. Could you check if it fixes your issue?

@github-actions
Copy link

It's been a while since we last heard from you. We are marking this issue as stale due to inactivity. Please provide the requested feedback or the issue will be closed after next 7 days.

@github-actions github-actions bot added the stale The issue / PR will be closed within the next 7 days of inactivity. label Apr 27, 2023
@github-actions
Copy link

github-actions bot commented May 4, 2023

There was no activity regarding this issue in the last 14 days. We're closing it for now. Still, feel free to provide us with requested feedback so that we can reopen it.

@github-actions github-actions bot added the resolution:expired Issue reporter did not provide enough information to reproduce the issue for at least 2 weeks. label May 4, 2023
@github-actions github-actions bot closed this as completed May 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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.
Projects
None yet
Development

No branches or pull requests

2 participants