Use Objects.requireNonNull().
This commit is contained in:
parent
aac6ec2d20
commit
55c770cd1b
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, ""));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue