mirror of
https://github.com/TeamNewPipe/NewPipe.git
synced 2024-11-25 12:32:31 +01:00
Replace RuntimeException with IOException
The RuntimeException was not explicitly declared and thus not caught at every call of this constructor. This change ensures that this possible exception is handled by the dedicated error handlers.
This commit is contained in:
parent
4e41e12bd2
commit
f2c2f1735e
@ -130,7 +130,7 @@ public class StoredFileHelper implements Serializable {
|
||||
final DocumentFile file = DocumentFile.fromSingleUri(context, path);
|
||||
|
||||
if (file == null) {
|
||||
throw new RuntimeException("SAF not available");
|
||||
throw new IOException("SAF not available");
|
||||
}
|
||||
|
||||
this.context = context;
|
||||
|
Loading…
Reference in New Issue
Block a user