yushesp opened a new pull request, #15928:
URL: https://github.com/apache/iceberg/pull/15928

   The procedure dereferenced `table.snapshot(from)` without a null check after 
committing the fast-forward, which could produce a bare NullPointerException 
with no error msg.
   
   This change replaces the unchecked dereference with a 
`Preconditions.checkState` guard that surfaces a exception that includes the 
branch name. Also eliminates the redundant double-lookup of the "before" 
snapshot by storing it in a local Snapshot variable.


-- 
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]

Reply via email to