Use Objects.requireNonNull().

This commit is contained in:
Isira Seneviratne
2021-01-02 09:36:33 +05:30
parent 0cdd866393
commit 14a2171035
6 changed files with 16 additions and 25 deletions
@@ -246,10 +246,7 @@ public class DownloadSettingsFragment extends BasePreferenceFragment {
// revoke permissions on the old save path (required for SAF only)
final Context context = getContext();
if (context == null) {
throw new NullPointerException("getContext()");
}
final Context context = requireContext();
forgetSAFTree(context, defaultPreferences.getString(key, ""));