Why accept null? Is that because null is passed in from yaml code?
I agree with guava that null is a source of many bugs so best avoided unless there is good reason (e.g. for our attributes/config where the value is null, rather than just never having been set, etc).

https://code.google.com/p/guava-libraries/wiki/UsingAndAvoidingNullExplained