diff --git a/cloudapi-web/src/main/kotlin/cn/edu/buaa/scs/route/Vm.kt b/cloudapi-web/src/main/kotlin/cn/edu/buaa/scs/route/Vm.kt index 9594a68..5663b2f 100644 --- a/cloudapi-web/src/main/kotlin/cn/edu/buaa/scs/route/Vm.kt +++ b/cloudapi-web/src/main/kotlin/cn/edu/buaa/scs/route/Vm.kt @@ -209,7 +209,7 @@ internal fun ApplicationCall.convertVmApplyResponse(vmApply: VmApply) = CreateVm namePrefix = vmApply.namePrefix, studentId = convertSimpleUser(vmApply.studentId), teacherId = convertSimpleUser(vmApply.teacherId), - applicant = convertSimpleUser(vmApply.applicant)!!, + applicant = convertSimpleUser(vmApply.applicant) ?: SimpleUser("null", "null"), experimentId = vmApply.experimentId, studentIdList = vmApply.studentIdList, cpu = vmApply.cpu,