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

Commit 19219805 authored by Steve Kondik's avatar Steve Kondik Committed by Gerrit Code Review
Browse files

Merge "prevent NPE in getNextCalendarAlarm" into gingerbread

parents 97ef853c 467bd1f6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -739,7 +739,7 @@ public class LockPatternUtils {
            cursor = Calendar.Instances.query(mContentResolver, new String[] {
                    Calendar.EventsColumns.TITLE, Calendar.EventsColumns.DTSTART
            }, now, later, where.toString(), null);
            if (cursor.moveToFirst()) {
            if (cursor != null && cursor.moveToFirst()) {
                String title = cursor.getString(0);
                Date start = new Date(cursor.getLong(1));
                StringBuilder sb = new StringBuilder();