mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-04-24 08:31:39 -04:00
Fix possible null pointers
This commit is contained in:
@@ -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