Can you post the declaration for the variable: List1?
What does the API doc say for the add method?