Skip to content

Commit

Permalink
GC: Fix NPE when fetching/parsing table-metadata JSON (#8428)
Browse files Browse the repository at this point in the history
  • Loading branch information
snazy authored May 1, 2024
1 parent 1bdf320 commit cf282ef
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public Stream<FileReference> extractFiles(ContentReference contentReference) {
|| S3_KEY_NOT_FOUND.equals(notFoundCandidate.getClass().getName())) {
notFound = true;
} else {
for (Throwable c = notFoundCandidate.getCause(); ; c = c.getCause()) {
for (Throwable c = notFoundCandidate.getCause(); c != null; c = c.getCause()) {
if (GCS_STORAGE_EXCEPTION.equals(c.getClass().getName())
&& c.getMessage().startsWith(GCS_NOT_FOUND_START)) {
notFound = true;
Expand Down

0 comments on commit cf282ef

Please sign in to comment.