Skip to content

Commit

Permalink
If can not find applicant, return User(null, null). (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
h56983577 authored Oct 12, 2023
1 parent 8360a91 commit 4477621
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 4477621

Please sign in to comment.