diff --git a/paper-api/src/main/java/org/bukkit/plugin/java/JavaPlugin.java b/paper-api/src/main/java/org/bukkit/plugin/java/JavaPlugin.java index 78769eb676..05349f3b6b 100644 --- a/paper-api/src/main/java/org/bukkit/plugin/java/JavaPlugin.java +++ b/paper-api/src/main/java/org/bukkit/plugin/java/JavaPlugin.java @@ -153,6 +153,11 @@ public abstract class JavaPlugin implements Plugin { try { URL url = getClassLoader().getResource(filename); + + if (url == null) { + return null; + } + URLConnection connection = url.openConnection(); connection.setUseCaches(false); return connection.getInputStream();