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

Commit 95ead2c5 authored by Christopher Tate's avatar Christopher Tate
Browse files

Don't crash when handling unlinked widget bindings

A host can have an 'instance' the other end of which is still
unlinked to a concrete provider.  Don't crash when we hit those.

Bug 13651057

Change-Id: I5a29afb0e6a7ab30976862aee04bd33f609543fa
parent 0046b16e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -158,7 +158,7 @@ class AppWidgetServiceImpl {
            final int N = instances.size();
            for (int i = 0; i < N; i++) {
                Provider p = instances.get(i).provider;
                if (p.info != null && pkg.equals(p.info.provider.getPackageName())) {
                if (p != null && p.info != null && pkg.equals(p.info.provider.getPackageName())) {
                    return true;
                }
            }