X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.lz4%2Fsrc%2Fnet%2Fjpountz%2Fxxhash%2FXXHashFactory.java;h=d9b199bd5fea4327b489ee9c38b2f4147336598e;hb=48ea5bf055156f92d497a9a45bc05ac9d85b6f43;hp=ab03dff1fcd81eb07b7a52f2ae92a499f600e63a;hpb=969bd23cab98a79ca9101af33334000879fb60c5;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.lz4/src/net/jpountz/xxhash/XXHashFactory.java b/bundles/org.simantics.lz4/src/net/jpountz/xxhash/XXHashFactory.java index ab03dff1f..d9b199bd5 100644 --- a/bundles/org.simantics.lz4/src/net/jpountz/xxhash/XXHashFactory.java +++ b/bundles/org.simantics.lz4/src/net/jpountz/xxhash/XXHashFactory.java @@ -126,8 +126,9 @@ public final class XXHashFactory { * using this method. */ public static XXHashFactory fastestInstance() { - if (Native.isLoaded() - || Native.class.getClassLoader() == ClassLoader.getSystemClassLoader()) { + if (!Native.failedToLoad() + && (Native.isLoaded() + || Native.class.getClassLoader() == ClassLoader.getSystemClassLoader())) { try { return nativeInstance(); } catch (Throwable t) {