Message: '0.geometry' is null or not an object

Discussion created by saikishore on Mar 20, 2013
Latest reply on Mar 20, 2013 by saikishore
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);

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?