I get this error… and can’t seem to figure it out
Here is the Stack Trace:
stacktrace.txt (5.4 KB)
I noticed it happens when I try:
jsComponent.addFunction(“valueChanged”, callbackEvent -> {
JsonArray arguments = callbackEvent.getArguments().getString(0);
String text = arguments.getString(0);
and I have to import:
import elemental.json.JsonArray;
the whole application breaks down
Hi,
From your code, I can see that you get a string from an array and assign it to an array.
JsonArray arguments = callbackEvent.getArguments().getString(0);
It seems that the correct code is:
JsonArray arguments = callbackEvent.getArguments();
String text = arguments.getString(0);
Regards,
Gleb