No need for the stack trace in this case, as the error message should contain enough information. `null` should be returned since the rest of the function won't be doing the right thing.