Loading core/java/android/database/sqlite/SQLiteDatabase.java +4 −4 Original line number Diff line number Diff line Loading @@ -1772,8 +1772,7 @@ public class SQLiteDatabase extends SQLiteClosable { */ public int updateWithOnConflict(String table, ContentValues values, String whereClause, String[] whereArgs, int conflictAlgorithm) { int setValuesSize = values.size(); if (values == null || setValuesSize == 0) { if (values == null || values.size() == 0) { throw new IllegalArgumentException("Empty values"); } Loading @@ -1784,6 +1783,7 @@ public class SQLiteDatabase extends SQLiteClosable { sql.append(" SET "); // move all bind args to one array int setValuesSize = values.size(); int bindArgsSize = (whereArgs == null) ? setValuesSize : (setValuesSize + whereArgs.length); Object[] bindArgs = new Object[bindArgsSize]; int i = 0; Loading Loading
core/java/android/database/sqlite/SQLiteDatabase.java +4 −4 Original line number Diff line number Diff line Loading @@ -1772,8 +1772,7 @@ public class SQLiteDatabase extends SQLiteClosable { */ public int updateWithOnConflict(String table, ContentValues values, String whereClause, String[] whereArgs, int conflictAlgorithm) { int setValuesSize = values.size(); if (values == null || setValuesSize == 0) { if (values == null || values.size() == 0) { throw new IllegalArgumentException("Empty values"); } Loading @@ -1784,6 +1783,7 @@ public class SQLiteDatabase extends SQLiteClosable { sql.append(" SET "); // move all bind args to one array int setValuesSize = values.size(); int bindArgsSize = (whereArgs == null) ? setValuesSize : (setValuesSize + whereArgs.length); Object[] bindArgs = new Object[bindArgsSize]; int i = 0; Loading