Added null check in appendSettingToCursor
Added check for null setting before adding to MatrixCursor. Bug: b/27908871 Change-Id: I0b71c3d5347cad705b8def98fda7e9e463c295e2
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user