[wp-trac] [WordPress Trac] #43005: JavaScript error Cannot read property 'action' of null on chrome (was: JavaScript error Cannot read property 'action' of null on chrome Version 63.0.3239.84)

WordPress Trac noreply at wordpress.org
Thu Jan 4 16:04:32 UTC 2018


#43005: JavaScript error Cannot read property 'action' of null on chrome
----------------------------+------------------------------
 Reporter:  manikmist09     |       Owner:
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Administration  |     Version:  4.9.1
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |     Focuses:  javascript
----------------------------+------------------------------

Comment (by manikmist09):

 @dingo_bastard , yes I do have Grammarly extension installed and disabling
 that the error does not shows. But if I check whether `message` itself is
 null or not before checking its property `message.action` the error does
 not show. so the condition will be like `null === message  || 'undefined'
 === typeof message.action`.

 I think that's good to have in that condition so we won't see any errors
 for the same reason. What do you think?

--
Ticket URL: <https://core.trac.wordpress.org/ticket/43005#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list