Fixed
Status Update
Comments
yb...@google.com <yb...@google.com> #2
Та же проблема.
Google, я твой рот шатал, хватит косячить!!
Google, я твой рот шатал, хватит косячить!!
ad...@google.com <ad...@google.com>
yb...@google.com <yb...@google.com> #3
Same issue and same log.
I can't launch my app on some physical devices with Android Studio 2.3 and Instant Run on .
Disabling instant run can fix the problem for me, but this's not cool..
I can't launch my app on some physical devices with Android Studio 2.3 and Instant Run on .
Disabling instant run can fix the problem for me, but this's not cool..
yb...@google.com <yb...@google.com>
ma...@gmail.com <ma...@gmail.com> #4
Faced the same problem, turning off Instant Run helped
yb...@google.com <yb...@google.com> #5
After updated i can't launch my app.
yb...@google.com <yb...@google.com> #6
Seeing the same here after upgrade to 2.3
26...@gmail.com <26...@gmail.com> #7
[Comment deleted]
sa...@gmail.com <sa...@gmail.com> #8
turning off instant run will not show debug messages in Run need to see in Android Monitor with filter that's slow down debugging.
km...@gmail.com <km...@gmail.com> #9
solve it pls
an...@gmail.com <an...@gmail.com> #10
facing the same issue.. Disabling instant run launches the app.
ph...@gmail.com <ph...@gmail.com> #11
is this issue with specific device ? reproducible on emulator ?.
please share gradle version and build tools version and min/max sdk versions to triage this issue.
please share gradle version and build tools version and min/max sdk versions to triage this issue.
Description
Version used: 3.4.0-alpha09
Devices/Android versions reproduced on:
Pixel 2 XL/Android 9
android.databinding.ViewDataBinding$LiveDataListener.onChanged cause NullpointerException
@Override
public void onChanged(@Nullable Object o) {
ViewDataBinding binder = mListener.getBinder();
binder.handleFieldChange(mListener.mLocalFieldId, mListener.getTarget(), 0);
}
Above code doesn't check nullity of binder which may be null. mListener is a ViewDataBinding.WeakListener, It's getBinder method goes like this:
protected ViewDataBinding getBinder() {
ViewDataBinding binder = get();
if (binder == null) {
unregister(); // The binder is dead
}
return binder;
}
When binder is GCed, null is returned and hence LiveDataListener.onChanged will fail with a NullpointerException.