Przeglądaj źródła

avoid NPE, fix test

tags/v1.5.4
Jonathan Cobb 3 lat temu
rodzic
commit
bdc18cccf0
2 zmienionych plików z 3 dodań i 3 usunięć
  1. +1
    -1
      bubble-server/src/main/java/bubble/resources/bill/AccountPlansResource.java
  2. +2
    -2
      bubble-server/src/test/resources/models/tests/auth/network_auth.json

+ 1
- 1
bubble-server/src/main/java/bubble/resources/bill/AccountPlansResource.java Wyświetl plik

@@ -162,7 +162,7 @@ public class AccountPlansResource extends AccountOwnedResource<AccountPlan, Acco
if (existingNetwork != null) errors.addViolation("err.name.networkNameAlreadyExists");
}

if (request.getLaunchType().fork()) {
if (request.hasLaunchType() && request.getLaunchType().fork()) {
if (!configuration.isSageLauncher()) {
errors.addViolation("err.forkHost.notAllowed");
} else {


+ 2
- 2
bubble-server/src/test/resources/models/tests/auth/network_auth.json Wyświetl plik

@@ -5,8 +5,8 @@
"params": {
"username": "root@local.local",
"userSession": "rootSession",
"contactInfo": "root@example.com",
"contactLookup": "root@example.com"
"contactInfo": "root@local.local",
"contactLookup": "root@local.local"
}
},



Ładowanie…
Anuluj
Zapisz