mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2026-09-26 02:41:49 +00:00
Use Objects.requireNonNull().
This commit is contained in:
@@ -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, ""));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user