avoid NullPointerException from Derrik Hudson on User Defined Types
Merge pull request #42 from davecramer/master

Avoid NPE on user defined types which have a value of null provided by Derrick Hudson