Skip to content

Commit

Permalink
Merge pull request #36628 from cescoffier/zlib-subs-fix
Browse files Browse the repository at this point in the history
Make the ZSTD Substitutions more robust
cescoffier authored Oct 24, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
2 parents 1e69886 + 0bb132f commit 070c31c
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -37,7 +37,9 @@ public IsZstdAbsent() {
try {
Class.forName("com.github.luben.zstd.Zstd");
zstdAbsent = false;
} catch (ClassNotFoundException e) {
} catch (Exception e) {
// It can be a classloading issue (the library is not available), or a native issue
// (the library for the current OS/arch is not available)
zstdAbsent = true;
}
}

0 comments on commit 070c31c

Please sign in to comment.