You need to sign in to do that
Don't have an account?
how to pass values to a list<string> in test method
hi i have a code like list var=iphidden.split(':'); var.remove(0). while i am writing test method for this , it showing exception like System.NullPointerException: Attempt to de-reference a null object. How to solve it? Please help me.
I assume that you did not set iphidden before calling the function, thus it would be null and not have any functions to call, such as String.split(). make sure there is a value assigned before attempting to call instance methods.