Skip to content

Commit

Permalink
If can not find applicant, return User(null, null).
Browse files Browse the repository at this point in the history
  • Loading branch information
h56983577 committed Sep 24, 2023
1 parent 653f05f commit 72b944a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cloudapi-web/src/main/kotlin/cn/edu/buaa/scs/route/Vm.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 72b944a

Please sign in to comment.