weizhouapache commented on code in PR #8222:
URL: https://github.com/apache/cloudstack/pull/8222#discussion_r1390828041


##########
api/src/main/java/org/apache/cloudstack/api/command/user/address/DisassociateIPAddrCmd.java:
##########
@@ -100,9 +111,9 @@ public String getEventDescription() {
     @Override
     public long getEntityOwnerId() {
         if (ownerId == null) {
-            IpAddress ip = getIpAddress(id);
+            IpAddress ip = getIpAddress();
             if (ip == null) {
-                throw new InvalidParameterValueException("Unable to find IP 
address by ID=" + id);
+                throw new InvalidParameterValueException("Unable to find IP 
address by ID=" + ip.getId());

Review Comment:
   if `ip == null`, `ip.getId()` throws a NullPointerException



-- 
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]

Reply via email to