Skip to content

[MJAVADOC-758] IOException --> NullPointerException in JavadocUtil.copyResource #1138

@jira-importer

Description

@jira-importer

Elliotte Rusty Harold opened MJAVADOC-758 and commented

These are not IOExceptions. They are null pointers

{{
protected static void copyResource(URL url, File file) throws IOException {
if (file == null) {
throw new IOException("The file can't be null.");
}
if (url == null) {
throw new IOException("The url could not be null.");
}

    FileUtils.copyURLToFile(url, file);
}}}

Remote Links:

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingpriority:minorMinor loss of function, or other problem where easy workaround is present

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions