rhtyd commented on a change in pull request #3638: UEFI Support on CloudStack
URL: https://github.com/apache/cloudstack/pull/3638#discussion_r392571550
##########
File path:
api/src/main/java/org/apache/cloudstack/api/command/user/vm/DeployVMCmd.java
##########
@@ -256,12 +281,35 @@ public Long getDomainId() {
}
}
}
+ if(getBootType() != null){ // export to get
+ if(getBootType() == ApiConstants.BootType.UEFI) {
Review comment:
@pavanaravapalli cc @DaanHoogland @andrijapanicsb
There is no null check, write it as `someEnum.equals(someVariable or
Method())` - this will never throw NPE.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services