What is the NS_ERROR_INVALID_POINTER error in Firefox?

2

While testing JavaScript code in Firefox 3.5 I sometimes get the following error:

Component returned failure code: 0x80004003 (NS_ERROR_INVALID_POINTER)

I've tried Googling it, but all I can find are solutions to specific problems in other people's code (ie. "if you do this differently then the error will not occur"). But what I'd like to understand is: what is that error - what does it mean? In other words, what do I really know from that error and what do I need to guess?

javascript
firefox
exception
asked on Stack Overflow Nov 23, 2009 by EMP

3 Answers

4

Without knowing specifically what you are calling, the error generally means you've passed something null to something that does not expect a null value.

answered on Stack Overflow Nov 23, 2009 by sdwilsh
1

I had this error too using Coffeescript when my Callback functions were defined after my main function. I just had to re order my functions to make it work. Hope it helps.

answered on Stack Overflow Aug 5, 2012 by RickyonRails
0

I just had the error by mistakenly trying to append an element to itself: elem.appendChild(elem);

answered on Stack Overflow Mar 19, 2013 by Andrei Cristian Prodan • edited Mar 19, 2013 by Andrei Cristian Prodan

User contributions licensed under CC BY-SA 3.0