diff --git a/src/com/sun/jna/Native.java b/src/com/sun/jna/Native.java index e7c401e50..ab45f84fc 100644 --- a/src/com/sun/jna/Native.java +++ b/src/com/sun/jna/Native.java @@ -1102,9 +1102,7 @@ private static void loadNativeDispatchLibraryFromClasspath() { String libName = "/com/sun/jna/" + Platform.RESOURCE_PREFIX + "/" + mappedName; File lib = extractFromResourcePath(libName, Native.class.getClassLoader()); if (lib == null) { - if (lib == null) { - throw new UnsatisfiedLinkError("Could not find JNA native support"); - } + throw new UnsatisfiedLinkError("Could not find JNA native support"); } LOG.log(DEBUG_JNA_LOAD_LEVEL, "Trying {0}", lib.getAbsolutePath());