When using handleGLSurfaceViewOnAndroid: true there is a non-frequent bug that crashes our app.
This code in applyTransformations throws NullPointerException:
// find all parents of the child view
View iterator = child;
do {
ms.add(iterator);
iterator = (View) iterator.getParent(); // This line throws
} while (iterator != root);
My guess is that iterator == root on first iteration, because there is a special case in getAllChildren, where view is a children of itself:
@NonNull
private List<View> getAllChildren(@NonNull final View v) {
if (!(v instanceof ViewGroup)) {
final ArrayList<View> viewArrayList = new ArrayList<>();
viewArrayList.add(v);
return viewArrayList;
}
// ...
}
bug report
When using
handleGLSurfaceViewOnAndroid: true
there is a non-frequent bug that crashes our app. This code inapplyTransformations
throwsNullPointerException
:My guess is that
iterator == root
on first iteration, because there is a special case ingetAllChildren
, where view is a children of itself:Version & Platform
Platform: Android
Expected behavior
No crash
Actual behavior
Crash
Steps to reproduce the behavior
Couldn't find a way to reproduce