mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-10-05 14:41:33 +00:00
Fix possible null pointers
This commit is contained in:
1 parent
f752f8b60f
commit
ea882bcc43
2 files changed
+8
No files matched your search
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user