Removed null-pointer-error-causing log statement