File tree 1 file changed +9
-7
lines changed
1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -279,13 +279,15 @@ else if (Platform.isWindows() && !isAbsolutePath) {
279
279
if (handle == 0 ) {
280
280
try {
281
281
File embedded = Native .extractFromResourcePath (libraryName , (ClassLoader )options .get (Library .OPTION_CLASSLOADER ));
282
- try {
283
- handle = Native .open (embedded .getAbsolutePath (), openFlags );
284
- libraryPath = embedded .getAbsolutePath ();
285
- } finally {
286
- // Don't leave temporary files around
287
- if (Native .isUnpacked (embedded )) {
288
- Native .deleteLibrary (embedded );
282
+ if (embedded != null ) {
283
+ try {
284
+ handle = Native .open (embedded .getAbsolutePath (), openFlags );
285
+ libraryPath = embedded .getAbsolutePath ();
286
+ } finally {
287
+ // Don't leave temporary files around
288
+ if (Native .isUnpacked (embedded )) {
289
+ Native .deleteLibrary (embedded );
290
+ }
289
291
}
290
292
}
291
293
}
You can’t perform that action at this time.
0 commit comments