Fix possible null pointers

This commit is contained in:
crschnick 2023-12-23 22:51:48 +00:00
parent f752f8b60f
commit ea882bcc43
2 changed files with 8 additions and 0 deletions

View file

@ -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;

View file

@ -706,6 +706,10 @@ public abstract class DataStorage {
return "?";
}
if (!store.getValidity().isUsable()) {
return "?";
}
return store.getProvider().browserDisplayName(store.getStore());
}