Improper use of null argument

You passed a null argument to a data reference operation, intrinsic function, or system‑supplied external subroutine that requires a non‑null argument. Null arguments are passed either by not specifying an argument in the call or by specifying an argument that is itself an argument that was not passed when the current routine was called.