I have added a new method in a class and added test data in the test class . It was PASS when I Ran the test class in Sandbox.
However , when I'm trying to deploy in Prod through Change Set, It's giving me "Null pointer Exception " error .
System.NullPointerException: Attempt to de-reference a null object Stack Trace: Class.MyClass.MyNewMethod: line 516, column 1 Class.MyClassTest.MyTestMethod: line 73, column 1
MyNewMethod is the same method which I have written newly and trying to deploy.
Please suggest why such error.