Charles Chan

Checks the emptiness of egressLabelString properly

Change-Id: I9a524f4d714ff796c3f2aa8dc4355d1c4c093c9b
......@@ -56,9 +56,8 @@ public class AddMplsIntent extends ConnectivityIntentCommand {
}
ConnectPoint egress = ConnectPoint.deviceConnectPoint(egressDeviceString);
Optional<MplsLabel> egressLabel = Optional.empty();
if (!ingressLabelString.isEmpty()) {
if (!egressLabelString.isEmpty()) {
egressLabel = Optional
.ofNullable(MplsLabel.mplsLabel(parseInt(egressLabelString)));
}
......