Uncaught TypeError: Cannot read property 'tagName' from null

We saw this error in our web application for the last couple of months:

Uncaught TypeError: Cannot read property 'tagName' of null

At first I noticed that this only happens on Android phones with 4.0.X, no other OS or version.

To debug this, I started by removing code and markup to try and find the culprit.
I did this until I completely emptied the document of everything, and the problem is still there.

The only key is the console line:

Reader :: Recognize :: INFO - Script is evaluating. recognizeArticle Start

Does anyone know why this is happening?
The problem is that we receive a notification of errors, and we cannot ignore this, as this happens on a random line and page every time.


I can add that this happens in all of our web applications.


, -, Android.
, , android -, .

, , S3.


, , , , :

(develop✗) $ curl -v localhost:3000/us/app
* About to connect() to localhost port 3000 (#0)
*   Trying 127.0.0.1...
* connected
* Connected to localhost (127.0.0.1) port 3000 (#0)
> GET /us/app HTTP/1.1
> User-Agent: curl/7.24.0 (x86_64-apple-darwin12.0) libcurl/7.24.0 OpenSSL/0.9.8r zlib/1.2.5
> Host: localhost:3000
> Accept: */*
> 
< HTTP/1.1 200 OK
< Content-Type: text/html; charset=utf-8
< X-UA-Compatible: IE=Edge
< Cache-Control: no-cache
< X-Request-Id: c7d96d6898017b5efa7659028008a8b8
< X-Runtime: 0.011019
< Vary: Accept-Encoding
< Content-Length: 0
< Connection: keep-alive
< Server: thin 1.3.1 codename Triple Espresso
< 
* Connection #0 to host localhost left intact
* Closing connection #0
+5
3

, Android 4.0.X div, 10 , JavaScript. RSS, -, , div.

+1

Chrome Linux, ImageBlocker. , , . .

0

:
, , HTML JavaScript, .

There is some JavaScript function somewhere on your page that starts and
1) tries to get an object from your DOM 2) it fails to execute 1) but DOES NOT process the error, leaving the link to the object's reference variable null
3) tries use the above object variable to get the property tagName.

If the above value is not true, you can ask NOT an error.

-1
source

All Articles