jackye1995 commented on code in PR #6777:
URL: https://github.com/apache/iceberg/pull/6777#discussion_r1100891080
##########
core/src/main/java/org/apache/iceberg/TableMetadata.java:
##########
@@ -290,7 +291,7 @@ public String toString() {
this.metadataFileLocation = metadataFileLocation;
this.formatVersion = formatVersion;
this.uuid = uuid;
- this.location = location;
+ this.location = location != null ?
LocationUtil.stripTrailingSlash(location) : null;
Review Comment:
I think this is the only place location could be null? In all other places
location is already initialized and must be non-null.
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]