ERROR "can not delete from null"

i got this error where i used remove()

but i tried remove(null, index) will return null instead of error, so what could cause this error?

  Discussion posts and replies are publicly visible

Parents Reply
  • 0
    Certified Lead Developer
    in reply to Harsh Kumar Agarwal

    remove(array, index)
    
    Removes the value at the given index from the given array, and returns the resulting array.
    
    Returns: List
    
    array (List): The array to modify.
    
    index (Number (Integer)): The index or array of indices at which the value should be removed (must be >= 1).

    As per the function definition it expects an array as first parameter and index of that array as second to remove item on that index. Now if you can share your code where you have used remove function that will be helpful to solve it.

Children
No Data