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

Commit 637e2f0c authored by cretin45's avatar cretin45 Committed by Ed Carrigan
Browse files

Dialer: Fix NPE in CallStats

Change-Id: I0eed1e66f803e072c58d85c78c253730f81f029d
See: https://jira.cyanogenmod.org/browse/BUGDUMP-114773?jql=text%20~%20%22Callstats%22
(cherry picked from commit 526bd53b)
parent 1a5216c1
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -161,6 +161,10 @@ public class CallStatsQueryHandler extends AsyncQueryHandler {

        while (!cursor.isAfterLast()) {
            final String number = cursor.getString(CallStatsQuery.NUMBER);
            if (number == null) {
                cursor.moveToNext();
                continue;
            }
            final long duration = cursor.getLong(CallStatsQuery.DURATION);
            final int callType = cursor.getInt(CallStatsQuery.CALL_TYPE);