just spent the last 2 hours debugging an issue that could've been prevented with a simple null check, seriously folks, never trust user input