Libor Spevak has uploaded a new change for review.

Change subject: NullPointerException in payload method fixed
......................................................................

NullPointerException in payload method fixed

Change-Id: I1b28efc3c223e1e20004e85430594346bdb353cd
Signed-off-by: Libor Spevak <[email protected]>
---
M 
backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/VmPayload.java
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/74/10974/1

diff --git 
a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/VmPayload.java
 
b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/VmPayload.java
index 3bd42ff..381bf48 100644
--- 
a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/VmPayload.java
+++ 
b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/VmPayload.java
@@ -44,7 +44,7 @@
     }
 
     public static boolean isPayload(Map<String, Object> specParams) {
-        return specParams.containsKey(SpecParamsPayload);
+        return specParams == null ? false : 
specParams.containsKey(SpecParamsPayload);
     }
 
     public static boolean isPayloadSizeLegal(String payload) {


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

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

Reply via email to