      *  @productversion Flex 3
      */
     public function addAllAt(addList:IList, index:int):void
-    {
-		var maxLength:int = this.length
-			
-        if (index < 0 || index > maxLength)
+    {	
+        if (index < 0 || index > this.length)
         {
             var message:String = resourceManager.getString(
                 "collections", "outOfBounds", [ index ]);

        }
        
        var length:int = addList.length;
			
		// incremental index may be out of bounds because of filtering,
		// so add this item to the end.
		if (index > maxLength)
			index = maxLength;

        for (var i:int=0; i < length; i++)
        {
            var insertIndex:int = i + index;
			
            this.addItemAt(addList.getItemAt(i), insertIndex);
        }

			throw new CollectionViewError(message);
		}

        if (localIndex && addedItems.length > 0)
        {
            addLocation = -1;
        }
