mirror of
https://github.com/PlaceholderAPI/PlaceholderAPI
synced 2025-10-28 17:41:58 +01:00
Close URLClassLoader if Expansion class was not found
This commit is contained in:
@@ -67,8 +67,11 @@ public class FileUtil {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return classes.isEmpty() ? null : classes.get(0);
|
||||
if (classes.isEmpty()) {
|
||||
loader.close();
|
||||
return null;
|
||||
}
|
||||
return classes.get(0);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user