Skip to content

Commit

Permalink
[Java] Add null guard for imageConnection when getting eosPosition.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeb01 committed Dec 18, 2023
1 parent 75c208b commit 724f6d2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -973,7 +973,7 @@ private long findEosPosition()
{
final ImageConnection imageConnection = imageConnections[i];

if (imageConnection.eosPosition > eosPosition)
if (null != imageConnection && imageConnection.eosPosition > eosPosition)
{
eosPosition = imageConnection.eosPosition;
}
Expand Down

0 comments on commit 724f6d2

Please sign in to comment.