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

Commit 133fdae1 authored by Lucas Dupin's avatar Lucas Dupin
Browse files

Fix NPE when view doesn't have a parent

Test: manually swipe up
Fixes: 129307155
Change-Id: I634923a155808972a98cecdf17e28f83ca5de65a
parent 2e5dd8cf
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3063,7 +3063,7 @@ public class NotificationPanelView extends PanelView implements
    private static float getCommonTop(View view) {
        float y = view.getTop();
        ViewGroup parent = (ViewGroup) view.getParent();
        while (!(parent instanceof StatusBarWindowView)) {
        while (!(parent instanceof StatusBarWindowView) && parent != null) {
            y += parent.getY();
            parent = (ViewGroup) parent.getParent();
        }