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

Commit eb785fa7 authored by Dianne Hackborn's avatar Dianne Hackborn Committed by The Android Open Source Project
Browse files

Automated import from //branches/master/...@141518,141518

parent 01345678
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -253,7 +253,15 @@ public class SortCursor extends AbstractCursor
        if (mCursor != null) {
            return mCursor.getColumnNames();
        } else {
            return new String[0];
            // All of the cursors may be empty, but they can still return
            // this information.
            int length = mCursors.length;
            for (int i = 0 ; i < length ; i++) {
                if (mCursors[i] != null) {
                    return mCursors[i].getColumnNames();
                }
            }
            throw new IllegalStateException("No cursor that can return names");
        }
    }