abh1sar commented on code in PR #12779:
URL: https://github.com/apache/cloudstack/pull/12779#discussion_r2934394178
##########
server/src/main/java/com/cloud/vm/UserVmManagerImpl.java:
##########
@@ -5598,7 +5524,7 @@ public void finalizeExpunge(VirtualMachine vm) {
}
private void checkForceStopVmPermission(Account callingAccount) {
- if (!AllowUserForceStopVm.valueIn(callingAccount.getId())) {
+ if (callingAccount == null ||
!AllowUserForceStopVm.valueIn(callingAccount.getId())) {
Review Comment:
valueIn() has a null check.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]