nativescript-http-formdata
nativescript-http-formdata copied to clipboard
Error: java.lang.IllegalArgumentException: Parameter specified as non-null is null: method kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull, parameter type
Hi,
I have a problem with this plugin.. So when i call the TNSHttpFormData.post() method then i get a error: JS: Error: java.lang.IllegalArgumentException: Parameter specified as non-null is null: method kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull, parameter type
How can i fix that?
Ty Adam
Need to check that the form parameters that you add are not null
params.push(
{ parameterName: 'PaameterName',
data: myField ? myField : '' }
);