Charles Chan

Checks the emptiness of egressLabelString properly

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