Exam UiPath-ADAv1 Topic 6 Question 237 Discussion
Actual exam question for UiPath's UiPath-ADAv1 exam
Question #: 237
Topic #: 6
Question #: 237
Topic #: 6
In the Catches section of the Try Catch activity a developer selected ArgumentException in the exception handler.

What happens when the activity encounters a NullReferenceException?

What happens when the activity encounters a NullReferenceException?
Suggested Answer: A Vote an answer
When the activity encounters a NullReferenceException, the Finally block is not executed and a runtime error occurs. This is because the Catches section of the Try Catch activity only handles the ArgumentException type, which is a specific type of exception that occurs when one of the arguments provided to a method is not valid1. A NullReferenceException is a different type of exception that occurs when there is an attempt to dereference a null object reference2. Since the Catches section does not have a handler for the NullReferenceException type, the exception is not caught and the execution is stopped with a runtime error. The Finally block, which contains the activities that are always executed regardless of the outcome of the Try Catch activity, is also skipped3. References: ArgumentException Class, NullReferenceException Class, and Try Catch from UiPath documentation.
by Nathan at Apr 17, 2026, 01:40 AM
Contact Us
If you have any question please leave me your email address, we will reply and send email to you in 12 hours.
Our Working Time: ( GMT 0:00-15:00 ) From Monday to Saturday
Support: Contact now
Comments
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Report Comment
Commenting
You can sign-up / login (it's free).