felixYyu commented on PR #4702:
URL: https://github.com/apache/iceberg/pull/4702#issuecomment-1120079951
Refer to other writing methods, Possible NPE risks, I think we should try to
avoid it.
e.g. AvroFileAppender
```
@Override
public void close() throws IOException {
if (writer != null) {
writer.close();
this.writer = null;
isClosed = true;
}
}
```
--
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]