Fixes ONOS-6176 - -r option throws an exception for bandwidth allocation for point to point intent

Change-Id: Ib8f5adf1862abb300a3113e9ffd8b34b25730d3c
diff --git a/cli/src/main/java/org/onosproject/cli/net/ConnectivityIntentCommand.java b/cli/src/main/java/org/onosproject/cli/net/ConnectivityIntentCommand.java
index 0a3256c..cdca955 100644
--- a/cli/src/main/java/org/onosproject/cli/net/ConnectivityIntentCommand.java
+++ b/cli/src/main/java/org/onosproject/cli/net/ConnectivityIntentCommand.java
@@ -419,12 +419,9 @@
         if (resourceGroupId != null) {
             if (resourceGroupId.toLowerCase().startsWith("0x")) {
                 return ResourceGroup.of(Long.parseUnsignedLong(resourceGroupId.substring(2), 16));
-            } else {
-                return ResourceGroup.of(resourceGroupId);
             }
-        } else {
-            return null;
         }
+        return ResourceGroup.of(resourceGroupId);
     }
 
     /**