NullReferenceException
CS-R1009Explicit trapping of NullReferenceException
is usually considered a bad practice. It usually means that your application has come across a null
reference in an unexpected manner which you're trying to suppress by explicitly trapping through a catch
block rather than finding the root cause. Since this was unexpected, it is probably not safe for your application to continue with the execution.