Github user jburwell commented on a diff in the pull request:

    https://github.com/apache/cloudstack/pull/1365#discussion_r58782564
  
    --- Diff: 
utils/src/main/java/org/apache/cloudstack/utils/volume/VirtualMachineDiskInfo.java
 ---
    @@ -39,4 +38,11 @@ public void setDiskDeviceBusName(String 
diskDeviceBusName) {
         public void setDiskChain(String[] diskChain) {
             this.diskChain = diskChain;
         }
    +
    +    public String getControllerFromDeviceBusName() {
    +        if (StringUtils.isEmpty(diskDeviceBusName) || 
!diskDeviceBusName.contains(":")) {
    +            return null;
    --- End diff --
    
    Return an empty string rather than null to avoid potential NPEs.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to