diff --git a/src/main/java/org/apache/maven/plugins/javadoc/JavadocUtil.java b/src/main/java/org/apache/maven/plugins/javadoc/JavadocUtil.java index 4e4e2c67..db7ef042 100644 --- a/src/main/java/org/apache/maven/plugins/javadoc/JavadocUtil.java +++ b/src/main/java/org/apache/maven/plugins/javadoc/JavadocUtil.java @@ -692,10 +692,10 @@ protected static List getTagletClassNames(File jarFile) */ protected static void copyResource(URL url, File file) throws IOException { if (file == null) { - throw new IOException("The file can't be null."); + throw new NullPointerException("The file can't be null."); } if (url == null) { - throw new IOException("The url could not be null."); + throw new NullPointerException("The url could not be null."); } FileUtils.copyURLToFile(url, file);