check not null on param.  possibly also check the parameter for sanity.