nativescript-http-formdata icon indicating copy to clipboard operation
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

Open csivor opened this issue 5 years ago • 1 comments

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

csivor avatar Jul 30 '20 08:07 csivor

Need to check that the form parameters that you add are not null

params.push(
{ parameterName: 'PaameterName', 
  data: myField ? myField : '' }
);

ChuckAtAlog avatar Jul 30 '20 15:07 ChuckAtAlog