Skip to content

Commit

Permalink
fix: fix ViewRefUtility.cancelViewTouchTargetFromParent npe
Browse files Browse the repository at this point in the history
  • Loading branch information
qii committed Apr 28, 2020
1 parent 87aa6b2 commit cd1f72c
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -48,6 +48,9 @@ public static void cancelViewTouchTargetFromParent(@NonNull View view) {

if (sReflectedMethodInitialized == INIT_SUCCESS) {
ViewGroup viewGroup = (ViewGroup) view.getParent();
if (viewGroup == null) {
return;
}
try {
sCancelTouchTargetMethod.invoke(viewGroup, view);
} catch (IllegalAccessException e) {
Expand Down

0 comments on commit cd1f72c

Please sign in to comment.