You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I created a class that implements one method of a built-in Java interface using PythonJavaClass. My class' constructor takes a function as the first argument and when the method I implemented is called it calls that function. After I initialize the class I simply pass it to my Activity instance and when I receive certain broadcasts I call the implemented method from Java to do the "callback" to Python.
Using this method up to now these 3 things have happened
the Activity segfaults
the call throws a NullPointerException (I implemented a method that returns a boolean and the exception is about "cannot unbox null value to boolean" or something similar)
things work flawlessly
One workaround I found was moving around the Python part of the code where I pass my class' instance to the Activity to different methods/functions. This fixed the issue however sometimes it creates DRY violations.
Has anyone experienced anything similar and came up with a more elegant solution?
The text was updated successfully, but these errors were encountered:
👋 We use the issue tracker exclusively for bug reports and feature requests. However, this issue appears to be a support request. Please use our support channels to get help with the project.
Let us know if this comment was made in error, and we'll be happy to reopen the issue.
I created a class that implements one method of a built-in Java interface using PythonJavaClass. My class' constructor takes a function as the first argument and when the method I implemented is called it calls that function. After I initialize the class I simply pass it to my Activity instance and when I receive certain broadcasts I call the implemented method from Java to do the "callback" to Python.
Using this method up to now these 3 things have happened
One workaround I found was moving around the Python part of the code where I pass my class' instance to the Activity to different methods/functions. This fixed the issue however sometimes it creates DRY violations.
Has anyone experienced anything similar and came up with a more elegant solution?
The text was updated successfully, but these errors were encountered: