Allon Mureinik has posted comments on this change.

Change subject: core: NPEs in AddVmTemplate.endSuccesfully after engine crash
......................................................................


Patch Set 1: I would prefer that you didn't submit this

(2 inline comments)

....................................................
File 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/AddVmTemplateCommand.java
Line 361: 
Line 362:     @Override
Line 363:     protected void endSuccessfully() {
Line 364:         setVmTemplateId(getParameters().getVmTemplateId());
Line 365:         
setVmId(((CreateImageTemplateParameters)getParameters().getImagesParameters().get(0)).getVmId());
why is this cast needed?
Line 366:         for (VdcActionParametersBase p : 
getParameters().getImagesParameters()) {
Line 367:             
Backend.getInstance().EndAction(VdcActionType.CreateImageTemplate, p);
Line 368:         }
Line 369:         if (reloadVmTemplateFromDB() != null) {


....................................................
File 
backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/action/AddVmTemplateParameters.java
Line 63:     public Guid getVmTemplateId() {
Line 64:         return privateVmTemplateID;
Line 65:     }
Line 66: 
Line 67:     public void setVmTemplateId(Guid value) {
why is this part of this patch?
Line 68:         privateVmTemplateID = value;
Line 69:     }
Line 70: 
Line 71:     public VM getVm() {


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

Gerrit-MessageType: comment
Gerrit-Change-Id: I12c40cd3736a0516473de223ec84301f84983d3b
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Liron Aravot <[email protected]>
Gerrit-Reviewer: Allon Mureinik <[email protected]>
Gerrit-Reviewer: Ayal Baron <[email protected]>
Gerrit-Reviewer: Daniel Erez <[email protected]>
Gerrit-Reviewer: Maor Lipchuk <[email protected]>
Gerrit-Reviewer: Vered Volansky <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to