Good point. I couldn't think of any correct behavior for nulls, inputs must never be null. But you areare absolutely right, I should log an error and raise a descriptive exception.