You need to sign in to do that
Don't have an account?
Amarjeet
System.DmlException: Insert failed.....on test class
System.DmlException: Insert failed. First exception on row 0; first error: CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY, OrderTrigger: execution of AfterUpdate
caused by: System.NullPointerException: Attempt to de-reference a null object
Class.StatusUpdate.Progress: line 25, column 1
Class.OrderTriggerHandler.afterUpdate: line 57, column 1
Class.TriggerHandler.run: line 47, column 1
Trigger.OrderTrigger: line 91, column 1: []
I am getting this error for my test class fail.
caused by: System.NullPointerException: Attempt to de-reference a null object
Class.StatusUpdate.Progress: line 25, column 1
Class.OrderTriggerHandler.afterUpdate: line 57, column 1
Class.TriggerHandler.run: line 47, column 1
Trigger.OrderTrigger: line 91, column 1: []
I am getting this error for my test class fail.
Can ypu please attach screenshot of your code so that we can know where the error is coming from.Also it could be due to some validartion rule or trigger that is running.So we will get to know more using the code.Also look at all the valiation rules before running the test class.
Please let us know if it could be of any help.
Thanks!