Devarsh Chintanbhai Vasani

Results issues of Devarsh Chintanbhai Vasani

- Fixes #9819 # Changes: - Changed `requireActivity()` method to `getActivity()`. - Added a check to ensure it's not null.