Meaning of error Uncaught TypeError: Can not read property 'ownerDocument' of null [closed]

0

I have a page that shows a map thanks to the Google Maps API. On the page, the map is shown, but an error appears in the console and I would like to know what it means.

places_impl.js:42 Uncaught TypeError: Cannot read property 'ownerDocument' of null
    at Object.k$.j (places_impl.js:42)
    at zw.<anonymous> (js?key=AIzaSyALlvGlPtW8DZ-gwhfq9lXHOJOt57z5T10&libraries=places&callback=initAutocomplete:153)
    at js?key=AIzaSyALlvGlPtW8DZ-gwhfq9lXHOJOt57z5T10&libraries=places&callback=initAutocomplete:127
    at Object.<anonymous> (js?key=AIzaSyALlvGlPtW8DZ-gwhfq9lXHOJOt57z5T10&libraries=places&callback=initAutocomplete:63)
    at js?key=AIzaSyALlvGlPtW8DZ-gwhfq9lXHOJOt57z5T10&libraries=places&callback=initAutocomplete:127
    at Object.<anonymous> (js?key=AIzaSyALlvGlPtW8DZ-gwhfq9lXHOJOt57z5T10&libraries=places&callback=initAutocomplete:63)
    at js?key=AIzaSyALlvGlPtW8DZ-gwhfq9lXHOJOt57z5T10&libraries=places&callback=initAutocomplete:127
    at js?key=AIzaSyALlvGlPtW8DZ-gwhfq9lXHOJOt57z5T10&libraries=places&callback=initAutocomplete:63
    at js?key=AIzaSyALlvGlPtW8DZ-gwhfq9lXHOJOt57z5T10&libraries=places&callback=initAutocomplete:127
    at $d (js?key=AIzaSyALlvGlPtW8DZ-gwhfq9lXHOJOt57z5T10&libraries=places&callback=initAutocomplete:65)
    
asked by Enrico Rock ON 01.03.2018 в 23:39
source

2 answers

1

The meaning is: an attempt was made to access the 'ownerDocument' property of a variable whose value is null:

let variable=null;
console.log(variable.ownerDocument);

Is the equivalent of a Null Pointer Error or NullPointerException of other programming languages.

    
answered by 04.03.2018 в 00:26
-1

From link

  

Uncaught TypeError: Can not read property 'foo' of null, Uncaught   TypeError: Can not read property 'foo' of undefined

     

Related errors: TypeError: someVal is null, Unable to get property 'foo'   of undefined or null reference

     

Try to read null or undefined as if it were an object. For example:

     

var someVal = null; console.log (someVal.foo);

     

How to solve this error: Usually caused by typographical errors.   Check the variables used near the line number indicated by the error are correctly named

    
answered by 02.03.2018 в 01:11