diff options
author | Nathan Adams <dinnerbone@dinnerbone.com> | 2011-11-22 00:03:16 +0000 |
---|---|---|
committer | Nathan Adams <dinnerbone@dinnerbone.com> | 2011-11-22 00:03:16 +0000 |
commit | 47432229cff74dec800f9c65e1d29f150504a7b5 (patch) | |
tree | 57b7043aa104d3b6f1b7b9e768efb1f9dab52f1a /src | |
parent | f1b0b8ebf3347ad8d00613e560b46bdda6234e3b (diff) | |
download | bukkit-47432229cff74dec800f9c65e1d29f150504a7b5.tar bukkit-47432229cff74dec800f9c65e1d29f150504a7b5.tar.gz bukkit-47432229cff74dec800f9c65e1d29f150504a7b5.tar.lz bukkit-47432229cff74dec800f9c65e1d29f150504a7b5.tar.xz bukkit-47432229cff74dec800f9c65e1d29f150504a7b5.zip |
Fixed the fix of the fix of javaplugin.getResource
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/bukkit/plugin/java/JavaPlugin.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/plugin/java/JavaPlugin.java b/src/main/java/org/bukkit/plugin/java/JavaPlugin.java index 78769eb6..05349f3b 100644 --- a/src/main/java/org/bukkit/plugin/java/JavaPlugin.java +++ b/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(); |