DomGarguilo commented on code in PR #5966:
URL: https://github.com/apache/accumulo/pull/5966#discussion_r2561125548


##########
core/src/main/java/org/apache/accumulo/core/conf/AccumuloConfiguration.java:
##########
@@ -347,21 +347,27 @@ public IntStream getPortStream(Property property) {
     checkType(property, PropertyType.PORT);
 
     String portString = get(property);
-    try {
+    Preconditions.checkArgument(portString != null, "Port cannot be null.");
+    portString = portString.trim();
+    Preconditions.checkArgument(!portString.isEmpty(), "Port cannot be 
empty.");

Review Comment:
   added in 7375e2d



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to