mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-06-20 05:18:55 -04:00
Allow for multiple connections with same name and fix NPE
This commit is contained in:
@@ -337,7 +337,7 @@ public class GuiDsStoreCreator extends MultiStepComp.Step<CompStructure<?>> {
|
||||
}
|
||||
|
||||
// We didn't change anything
|
||||
if (existingEntry.getStore().equals(store.getValue())) {
|
||||
if (existingEntry != null && existingEntry.getStore().equals(store.getValue())) {
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -347,15 +347,6 @@ public class GuiDsStoreCreator extends MultiStepComp.Step<CompStructure<?>> {
|
||||
}
|
||||
}
|
||||
|
||||
if (!exists) {
|
||||
if (name.getValue() != null
|
||||
&& DataStorage.get().getStoreEntryIfPresent(name.getValue()).isPresent()) {
|
||||
messageProp.setValue("Store with name " + name.getValue() + " does already exist");
|
||||
changedSinceError.setValue(false);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if (!validator.getValue().validate()) {
|
||||
var msg = validator
|
||||
.getValue()
|
||||
|
||||
Reference in New Issue
Block a user