Hi, i get "Message: '0.geometry' is null or not an object" javascript error when i try to render the map in IE. It works fine in mozilla.
plotAddressId= function plotAddressId(addressId, state, attributes) {
// alert(attributes);
addressIdQuery = new esri.tasks.Query();
addressIdQuery.returnGeometry = true;
addressIdQuery.where = "ADDRESS_KEY = '" + state + addressId + "'";
addressIdQueryTask.execute(addressIdQuery, function(results) {
var geom = results.features[0].geometry;
var graphic = new esri.Graphic(geom, locationSymbol);
graphic.setAttributes(attributes);
locationGraphicsLayer.add(graphic);
zoomToLocations();
});
}
This piece of code is generating it. However, when i uncomment the alert message, i dnt see the script error. Its basically waitings for somethings to load prior to it. What is the work around for this?