We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
RNWootric.configureWithClientID()
Here is an implementation of configureWithClientID() method:
configureWithClientID()
@ReactMethod public void configureWithClientID(String clientId, String accountToken) { wootric = Wootric.init(getCurrentActivity(), clientId, accountToken); }
As we can see, getCurrentActivity() method is called, which can return null value: link
getCurrentActivity()
null
Let's go and see, how Wootric.init() is implemented: link
Wootric.init()
And, as we can see, activity parameter does not accept null values: it throws and exception, when such case occurs.
activity
I suppose, implementation of configureWithClientID() need to be changed. At least Wootric.init() should not not accept nullable parameters.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Here is an implementation of
configureWithClientID()
method:As we can see,
getCurrentActivity()
method is called, which can returnnull
value: linkLet's go and see, how
Wootric.init()
is implemented: linkAnd, as we can see,
activity
parameter does not acceptnull
values: it throws and exception, when such case occurs.I suppose, implementation of
configureWithClientID()
need to be changed. At leastWootric.init()
should not not accept nullable parameters.The text was updated successfully, but these errors were encountered: