Check for null pointer before dereferencing. A careless typo on my part.