mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-10-01 09:40:35 +13:00
Fix possible null pointers
This commit is contained in:
parent
f752f8b60f
commit
ea882bcc43
2 changed files with 8 additions and 0 deletions
|
@ -73,6 +73,10 @@ public class FileSystemHelper {
|
|||
return null;
|
||||
}
|
||||
|
||||
if (model.getFileSystem() == null) {
|
||||
return path;
|
||||
}
|
||||
|
||||
var shell = model.getFileSystem().getShell();
|
||||
if (shell.isEmpty()) {
|
||||
return path;
|
||||
|
|
|
@ -706,6 +706,10 @@ public abstract class DataStorage {
|
|||
return "?";
|
||||
}
|
||||
|
||||
if (!store.getValidity().isUsable()) {
|
||||
return "?";
|
||||
}
|
||||
|
||||
return store.getProvider().browserDisplayName(store.getStore());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue