Oved Ourfali has uploaded a new change for review.

Change subject: engine : NPE when adding a VM to a VM pool when there's not 
enough storage
......................................................................

engine : NPE when adding a VM to a VM pool when there's not enough storage

NPE in the engine log while adding a vm to
an existing pool, when there is not enough
storage to perform this operation.

Change-Id: I0d53e9505054f9476910154a7677d273293f79c0
Bug-Url: https://bugzilla.redhat.com/1179558
Signed-off-by: Ravi Nori <[email protected]>
(cherry picked from commit 113f99d5fd26c760a992b0f160996259e8a79f47)
---
M 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/job/ExecutionHandler.java
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/05/38205/1

diff --git 
a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/job/ExecutionHandler.java
 
b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/job/ExecutionHandler.java
index f5e764a..a7cdd7e 100644
--- 
a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/job/ExecutionHandler.java
+++ 
b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/job/ExecutionHandler.java
@@ -126,7 +126,7 @@
                     if (context.getExecutionMethod() == ExecutionMethod.AsStep
                             && parentStep != null) {
                         context.setCompleted(true);
-                        if (!exitStatus) {
+                        if (job != null && !exitStatus) {
                             job.markJobEnded(false);
                             JobRepositoryFactory.getJobRepository()
                                     .updateCompletedJobAndSteps(job);


-- 
To view, visit https://gerrit.ovirt.org/38205
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I0d53e9505054f9476910154a7677d273293f79c0
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: ovirt-engine-3.5.2
Gerrit-Owner: Oved Ourfali <[email protected]>
Gerrit-Reviewer: Ravi Nori <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to