-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: java.lang.IllegalArgumentException: Parameter specified as non-null is null: method kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull #12
Comments
My guess is the image isn't there when you pass it to the filter method. That's what the error says. It's null. Even though you set the src, if it's over the network it's very likely not loaded completed by the time the execution hits the next line. So I would check for an async approach to setting the src before calling the filter. |
The image is downloaded using the http function. It's an async call (look at the "then"), imageSource will contain the image loaded from the web when the line "imageSource.saveToFile(this.path, "png");" is reached. So the image is already there in the correct path. Anyway, I tried to insert the filter call inside a timeout (10 seconds), but the error is still there |
Gotcha. Where do you set Error: java.lang.IllegalArgumentException: Parameter specified as non-null is null: method kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull, parameter value Which is telling us whatever is being passed to that method is null. Seems odd, might want to look at the source of that method and be sure the plugin isn't doing anything before calling the native lib. |
The image exist in that path, because if I launch |
K. I don't have time to debug it but if you do, you can debug the source of that method when you run it to see what exactly is being passed to the method, would be good to confirm its not null, which would be weird since that's the exception |
Hi, I need to set an image rounded inside a TabView. I need to download an image from the web, to edit it and to save it. This is the code:
The function "roundCorner" return this error:
What's the issue?
The text was updated successfully, but these errors were encountered: