Merge "Added null check in appendSettingToCursor" into nyc-dev

This commit is contained in:
TreeHugger Robot
2016-04-13 03:10:22 +00:00
committed by Android (Google) Code Review

View File

@@ -1324,6 +1324,9 @@ public class SettingsProvider extends ContentProvider {
}
private static void appendSettingToCursor(MatrixCursor cursor, Setting setting) {
if (setting == null) {
return;
}
final int columnCount = cursor.getColumnCount();
String[] values = new String[columnCount];