Fix store creation with blank name

This commit is contained in:
crschnick
2025-05-20 13:57:37 +00:00
parent 5d466008f8
commit a5c0b5b41b
@@ -88,7 +88,7 @@ public class StoreCreationModel {
});
this.entry = Bindings.createObjectBinding(
() -> {
if (name.getValue() == null || store.getValue() == null) {
if (name.getValue() == null || store.getValue() == null || name.getValue().isBlank()) {
return null;
}
@@ -107,7 +107,7 @@ public class StoreCreationModel {
skippable.bind(Bindings.createBooleanBinding(
() -> {
if (name.get() != null && store.get().isComplete() && store.get() instanceof ValidatableStore) {
if (entry.getValue() != null && store.get().isComplete() && store.get() instanceof ValidatableStore) {
return true;
} else {
return false;