Change-Id: Icf4f9ab08f95ff9a878634d9f00033efca0534b0
Signed-off-by: Dana Kutenicsova <dkutenic@cisco.com>
MpReachNlri mpReach = null;
if (message.getNlri() != null) {
mpReach = prefixesToMpReach(message);
MpReachNlri mpReach = null;
if (message.getNlri() != null) {
mpReach = prefixesToMpReach(message);
- } else if (attrs.getAugmentation(PathAttributes1.class) != null) {
+ } else if (attrs != null && attrs.getAugmentation(PathAttributes1.class) != null) {
mpReach = attrs.getAugmentation(PathAttributes1.class).getMpReachNlri();
}
if (mpReach != null) {
mpReach = attrs.getAugmentation(PathAttributes1.class).getMpReachNlri();
}
if (mpReach != null) {
MpUnreachNlri mpUnreach = null;
if (message.getWithdrawnRoutes() != null) {
mpUnreach = prefixesToMpUnreach(message);
MpUnreachNlri mpUnreach = null;
if (message.getWithdrawnRoutes() != null) {
mpUnreach = prefixesToMpUnreach(message);
- } else if (attrs.getAugmentation(PathAttributes2.class) != null) {
+ } else if (attrs != null && attrs.getAugmentation(PathAttributes2.class) != null) {
mpUnreach = attrs.getAugmentation(PathAttributes2.class).getMpUnreachNlri();
}
if (mpUnreach != null) {
mpUnreach = attrs.getAugmentation(PathAttributes2.class).getMpUnreachNlri();
}
if (mpUnreach != null) {