瀏覽代碼

avoid NPE, fix test

tags/v1.5.4
Jonathan Cobb 3 年之前
父節點
當前提交
bdc18cccf0
共有 2 個檔案被更改,包括 3 行新增3 行删除
  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 查看文件

@@ -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 查看文件

@@ -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"
}
},



Loading…
取消
儲存