"TypeError: a is null" thrown only in FireFox
See original GitHub issueI get “TypeError: a is null” thrown only in FireFox.
It show this bit as causing the error:
...1?" ":"<br>",G=function(a){return g(a)?a.nodeValue.length:a.childNodes.leng...
----------------------------------------------------------^
Issue Analytics
- State:
- Created 8 years ago
- Reactions:3
- Comments:16 (1 by maintainers)
Top Results From Across the Web
TypeError: a is null - Firefox - Stack Overflow
this is working in Chrome, but not in FireFox, I am getting: TypeError: a is null. enter image description here. what am I...
Read more >How to Fix TypeError: Null is Not an Object in JavaScript
The JavaScript error TypeError: null is not an object occurs when a property is accessed or a method is called on a null...
Read more >What is error this.container is null -- I keep getting this error ...
Following a Firefox recommendation, I cleared history and cashe and other steps in their recommendation. Since then, not only my Google Calendar ...
Read more >[Fixed in v3.2.1] Issue with CSSPlugin in Firefox: TypeError
... but CSSPlugin is throwing a TypeError in Firefox only (Both in ... v3.2.1] Issue with CSSPlugin in Firefox: TypeError: oldParent is null....
Read more >993451 – Safari Browser Only: Globally uncaught Exception
JavaScriptException:(TypeError): 'null' is not an object (evaluating 'this.form. ... Safari still throws the Globally uncaught exception, ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’m also getting this error, and it only occurs in Firefox. The page I’m working on is rather complicated, so I’m unable to isolate a test case. However, using the un-minified version, I was able to track down the error. The exact error message is actually “TypeError: node is null” and here’s the stack trace for version 0.8.1:
I did some digging and in the getVisiblePoint() function call, for some reason the block variable is null:
Later on, when the isRightEdgeOf() function is called, it traverses up the dom tree. But, when it reaches the top, node.parentNode is null and nodeLength(node.parentNode) throws the error message (because null has no childNodes). My (probably incorrect) work around was to simply add the following line to the nodeLength() function:
if (node === null) { return 0; }
Thanks @lesilent
I had the same problem in firefox and corrects the problem by following your tip follows the amendment