Sho SHIMIZU
Committed by Gerrit Code Review

Flip right hand side and left hand side of if-condition

Change-Id: I5e6b316f447a4a842290f21f3d60e05637793d5e
......@@ -51,7 +51,7 @@ public class PcepErrorInfoVer1 implements PcepErrorInfo {
public PcepErrorInfoVer1(LinkedList<PcepRPObject> llRPObjList, LinkedList<PcepTEObject> llTEObjList,
LinkedList<PcepErrorObject> llErrObjList) {
this.errList = new LinkedList<PcepError>();
if ((null != llErrObjList) && (!llErrObjList.isEmpty())) {
if ((llErrObjList != null) && (!llErrObjList.isEmpty())) {
this.errList.add(new PcepErrorVer1(llRPObjList, llTEObjList, llErrObjList));
}
}
......
......@@ -163,7 +163,7 @@ public class PcepErrorMsgVer1 implements PcepErrorMsg {
this.errInfo = new PcepErrorInfoVer1(null, null, llErrObjList);
this.errInfo.read(cb);
} else if ((null != llErrObjList) && (!llErrObjList.isEmpty())) {
} else if ((llErrObjList != null) && (!llErrObjList.isEmpty())) {
//If only PCEP-ERROR list is present then store it in errObjListWithOpen.
this.errObjListWithOpen = new ErrorObjListWithOpen(llErrObjList);
} else {
......