Fixed exception. Always compare with null.