Quantcast
Channel: Adobe Community : Unanswered Discussions - ColdFusion
Viewing all articles
Browse latest Browse all 5794

Sporadic coldfusion.runtime.CfJspPage$ArrayBoundException

$
0
0

I have the following loop, going through an array, and trimming the of element i and then overwriting the element with the trimmed value:

 

for(a=1; a <= ArrayLen(arguments.locationHeaders); a++){

     arguments.locationHeaders[a] = Trim(arguments.locationHeaders[a]);

}

 

Every so often I get an error stating The element at position X cannot be found. 

 

I'm looping through the very array I'm editing!  How can I be OOB...?

 

If I refresh the browser it works fine.


Viewing all articles
Browse latest Browse all 5794

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>