Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b8f8de85 authored by Romain Guy's avatar Romain Guy
Browse files

Fixes #1940839. Prevents NPE in RelativeLayout when a non-existing View is

targeted.
parent 69e1f472
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1222,6 +1222,9 @@ public class RelativeLayout extends ViewGroup {
                            throw new IllegalStateException("A view cannot have a dependency" +
                                    " on itself");
                        }
                        if (dependency == null) {
                            continue;
                        }
                        // Add the current node as a dependent
                        dependency.dependents.add(node);
                        // Add a dependency to the current node