Skip to content

Commit f4847cd

Browse files
authored
Update Stub.cls
1 parent 157e663 commit f4847cd

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

  • force-app/main/default/classes/test utilities

force-app/main/default/classes/test utilities/Stub.cls

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,10 @@ public with sharing class Stub implements System.StubProvider {
7777
List<String> paramNames,
7878
List<Object> args
7979
) {
80+
paramTypes = paramTypes ?? new List<Type>();
81+
paramNames = paramNames ?? new List<String>();
82+
args = args ?? new List<Object>();
83+
8084
// Creates a method signature object from dependency injected variables
8185
// used for comparing the current method call being handled against the
8286
// list of MockedMethod objects

0 commit comments

Comments
 (0)