laptop and a wrench

Bug

The locationToAddress method of Locator Class returns the following error in the console, "Cannot read property 'toJSON' of null."

Last Published: August 23, 2019 ArcGIS API for JavaScript
Bug ID Number BUG-000123673
SubmittedJuly 12, 2019
Last ModifiedApril 2, 2025
Applies toArcGIS API for JavaScript
Version found4.12
StatusWill Not Be Addressed

Additional Information

The LocationToAddress method has changed to now take params object. This is documented as such in https://developers.arcgis.com/javascript/latest/api-reference/esri-tasks-Locator.html#locationToAddress and also in the 4.12 release notes, https://developers.arcgis.com/javascript/latest/guide/release-notes/. Working sample of this can be seen at https://developers.arcgis.com/javascript/latest/sample-code/intro-popup/index.html.

Steps to Reproduce

Bug ID: BUG-000123673

Software:

  • ArcGIS API for JavaScript

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options