...
/Exercise: Refactoring a Function to Prevent Null
Exercise: Refactoring a Function to Prevent Null
Refactor a function to fix a NullReferenceException.
We'll cover the following...
Preventing a NullReferenceException
Now, let’s play!
Let’s refactor a method that throws a NullReferenceException
. For this exercise, we’ll continue working with a catalog of ...