Mahesh Poojary S
Committed by Ray Milkey

Resolving issue in parsing report message.

Change-Id: Iab4bcab84d1a732946737497e9780fa3461e9355
......@@ -26,6 +26,7 @@ import org.onosproject.pcepio.types.PcepErrorDetailInfo;
import org.onosproject.pcepio.types.PcepObjectHeader;
import org.onosproject.pcepio.types.PcepValueType;
import org.onosproject.pcepio.types.StatefulIPv4LspIdentidiersTlv;
import org.onosproject.pcepio.types.StatefulLspDbVerTlv;
import org.onosproject.pcepio.types.StatefulLspErrorCodeTlv;
import org.onosproject.pcepio.types.StatefulRsvpErrorSpecTlv;
import org.onosproject.pcepio.types.SymbolicPathNameTlv;
......@@ -337,6 +338,9 @@ public class PcepLspObjectVer1 implements PcepLspObject {
case SymbolicPathNameTlv.TYPE:
tlv = SymbolicPathNameTlv.read(cb, hLength);
break;
case StatefulLspDbVerTlv.TYPE:
tlv = StatefulLspDbVerTlv.read(cb);
break;
default:
throw new PcepParseException("Received unsupported TLV type :" + hType);
}
......
......@@ -1008,7 +1008,10 @@ public class PcepTunnelProvider extends AbstractProvider implements TunnelProvid
PcepStateReport.PcepMsgPath msgPath = stateRpt.getMsgPath();
checkNotNull(msgPath);
PcepRroObject rroObj = msgPath.getRroObject();
checkNotNull(rroObj);
if (rroObj == null) {
log.debug("RRO object is null in sate report");
return;
}
int bandwidth = 0;
log.debug("Handle Sync report received from PCC.");
......