Fixed
Details
Details
Assignee
Michael Offner
Michael OffnerReporter
Nicholas Claaszen
Nicholas ClaaszenPriority
Fix versions
New Issue warning screen
Before you create a new Issue, please post to the mailing list first https://dev.lucee.org
Once the issue has been verified, one of the Lucee team will ask you to file an issue
Created 2 July 2015 at 18:52
Updated 19 December 2016 at 14:05
Resolved 19 December 2016 at 14:05
If you pass http().addParam a file param without a file variable, Lucee throws a Java Nullpointer error. This error could be clearer.
Code:
<cfscript>
variables.httpArgs = {
method: "POST",
url: "http://google.com"
};
variables.paramArgs = {
type: "file",
name: "file",
value: "/whatever/path/doesntmatter.txt"
}
variables.connection = new http( argumentCollection: variables.httpArgs );
variables.connection.addParam( argumentCollection: variables.paramArgs );
variables.connection.send();
</cfscript>