avoid NullPointerException from Derrik Hudson on User Defined Types