mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-07-04 22:10:56 +12:00
Fix possible null pointers
This commit is contained in:
parent
f752f8b60f
commit
ea882bcc43
|
@ -73,6 +73,10 @@ public class FileSystemHelper {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (model.getFileSystem() == null) {
|
||||||
|
return path;
|
||||||
|
}
|
||||||
|
|
||||||
var shell = model.getFileSystem().getShell();
|
var shell = model.getFileSystem().getShell();
|
||||||
if (shell.isEmpty()) {
|
if (shell.isEmpty()) {
|
||||||
return path;
|
return path;
|
||||||
|
|
|
@ -706,6 +706,10 @@ public abstract class DataStorage {
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!store.getValidity().isUsable()) {
|
||||||
|
return "?";
|
||||||
|
}
|
||||||
|
|
||||||
return store.getProvider().browserDisplayName(store.getStore());
|
return store.getProvider().browserDisplayName(store.getStore());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue