Closed malinajirka closed 2 years ago
@malinajirka should I just merge this PR to release/0.006
or should we wait for @jkmassel to confirm?
@anitaa1990 I'd suggest waiting for Jeremy. Thank you so much for the review and reporting this issue! ;)
Just to be extra extra sure, was it confirmed/tested that this doesn't affect WPAndroid but only WC?
@AliSoftware I'm 100% sure the issue was introduced in this PR which was introduced in v0.0.6. So if WPAndroid is still on v0.0.4 the WPAndroid is not affected. But I can re-test it if you'd feel safer, just let me know.
Thanks for double-checking @malinajirka 👍
I confirm that the release/18.4
as well as develop
for WPAndroid both still use WordPress Login lib version 0.0.4
, so we're all good for WPAndroid then 👍
This PR fixes a NPE introduced in this PR.
We were using java's nullable Boolean instead of non-nullable boolean. When we tried to store this value into a bundle, the app crashed with NPE as
Bundle.putBoolean
acceptsboolean
so when we pass a nullBoolean
the automatic cast results in NPE.Test in WCAndroid:
cc @jkmassel ~@AliSoftware~ ~Unfortunately, this bug affects both WPAndroid and WCAndroid 😞.~ (Update: I take that back, it seems that WPAndroid still uses v0.0.4 so this bug affects only WCAndroid). I've created
release/0.0.6
branch to make sure we don't merge any other changes into the beta release. Having said that, if you prefer to merge this PR directly into develop, feel free to do so.