Bluepirnt run time error with SetRelativeRotation in a BP for pickup and rotate interation

I was trying to make a FirstPerson BP that allows the player to grab and rotate objects. Below are screenshots of my blueprint contents.

When I play the game in the editor, I constantly got error message “Blueprint Runtime Error: Accessed None trying to read property CallFunc_BreakHitResult_HitComponent from function: ‘ExecuteUbergraph_FirstPersonCharacter’ from node: SetRelativeRotation in graph: EventGraph in object: FirstPersonCharacter with description: Accessed None trying to read property CallFunc_BreakHitResult_HitComponent” However, I was able to perform the pickup and rotate interaction without any problem. I can even package the game and play it without having any issue.

Can anyone please help me on solving the annoying error message in editor?

Thanks a lot for your help. But I don’t quite understand what you meant. I created a “isValid?” variable but do not know how to set it. Could you please give me some further instruction?

Works like a charm! Thank you so much! I am sharing the BP for whoever may need it. The BP incorporates automatic DOF and pickup/rotation functionalities: one click on the right mouse button to pick up a moveable object and another click to drop/place it; scrolling wheel for control of rotation.