Intermitant "'this.spatialReference' is null" Bug

692
2
03-16-2013 12:33 AM
BillHoney
New Contributor III
Hi,
I'm getting an intermittent error on startup of my application.
It occurs maybe 1 time in 10
The stack trace is all in anonymous code (i.e. not caused by my code)

The stack trace in deep inside the 3.3  serverapi.arcgisonline.com code:


[INDENT]'this.spatialReference' is null or not an object
info=this.spatialReference._getInfo()
_23c=this._getFrameWidth()
this._setClipRect()
this.onResize(ne,wd,ht)
self._resize()[/INDENT]



I have NO resize logic in my app.
I have tried adding some in the style of earlier versions of the api  , but this has made no difference.
my app is quite large.
Can anyone advise ?
Bill

// Makes no difference 
function window_onResize() {
 var resizeTimer;
 clearTimeout(resizeTimer);
 resizeTimer = setTimeout(function () {
  if (map) {
   map.resize();
   map.reposition();
  }
 }, 500); 
} 
0 Kudos
2 Replies
AndrewBrown1
Occasional Contributor II
Is this still an issue for you? I received this error this morning on my application.
0 Kudos
BillHoney
New Contributor III
Yes,
I'm still getting it.
About 1 time in 10 or 20.   I think its a timing issue with something.  It doesn't help that the error is deep in the API
There is no useful stack trace

Regards,
Bill
0 Kudos