commit | 4b003c54505496370468b63e9f6f9301fd18d707 | [log] [tgz] |
---|---|---|
author | Charles Chan <rascov@gmail.com> | Sun Aug 23 23:04:27 2015 +0800 |
committer | Charles Chan <rascov@gmail.com> | Sun Aug 23 23:04:27 2015 +0800 |
tree | 5e77d2b3b284c0548c3f21bd508068e602808bfa | |
parent | 2121e3f1ce7973b21d51308cf0a07b4ff7b2db97 [diff] |
Checks the emptiness of egressLabelString properly Change-Id: I9a524f4d714ff796c3f2aa8dc4355d1c4c093c9b
diff --git a/cli/src/main/java/org/onosproject/cli/net/AddMplsIntent.java b/cli/src/main/java/org/onosproject/cli/net/AddMplsIntent.java index 0983aff..1929b72 100644 --- a/cli/src/main/java/org/onosproject/cli/net/AddMplsIntent.java +++ b/cli/src/main/java/org/onosproject/cli/net/AddMplsIntent.java
@@ -56,9 +56,8 @@ } ConnectPoint egress = ConnectPoint.deviceConnectPoint(egressDeviceString); - Optional<MplsLabel> egressLabel = Optional.empty(); - if (!ingressLabelString.isEmpty()) { + if (!egressLabelString.isEmpty()) { egressLabel = Optional .ofNullable(MplsLabel.mplsLabel(parseInt(egressLabelString))); }