Null check

Checking for null in the constructor of a service record