Alon Bar-Lev has uploaded a new change for review.

Change subject: registration: fix null pointer exception
......................................................................

registration: fix null pointer exception

Change-Id: I5cdbedceec4ce3482b59ee625d20b7fdf4ccba9b
Signed-off-by: Alon Bar-Lev <[email protected]>
---
M 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/RegisterVdsQuery.java
1 file changed, 5 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/58/9158/1

diff --git 
a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/RegisterVdsQuery.java
 
b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/RegisterVdsQuery.java
index e332f05..4252453 100644
--- 
a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/RegisterVdsQuery.java
+++ 
b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/RegisterVdsQuery.java
@@ -480,9 +480,11 @@
                 }
             }
         } else {
-            log.debugFormat(
-                    "No Change required for VDS {0}. Since it has the same 
unique Id",
-                    hostToRegister.getId());
+            if (hostToRegister != null) {
+                log.debugFormat(
+                        "No Change required for VDS {0}. Since it has the same 
unique Id",
+                        hostToRegister.getId());
+            }
         }
         log.debugFormat("Leaving with value {0}", returnValue);
         return returnValue;


--
To view, visit http://gerrit.ovirt.org/9158
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I5cdbedceec4ce3482b59ee625d20b7fdf4ccba9b
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Alon Bar-Lev <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to