diff --git a/library/src/com/orm/SugarRecord.java b/library/src/com/orm/SugarRecord.java index 764b655e..f87630b4 100644 --- a/library/src/com/orm/SugarRecord.java +++ b/library/src/com/orm/SugarRecord.java @@ -113,7 +113,11 @@ long save(SQLiteDatabase db) { values.put(columnName, (Long) null); } } else { - values.put(columnName, String.valueOf(columnValue)); + if (columnValue == null) { + values.putNull(columnName); + } else { + values.put(columnName, String.valueOf(columnValue)); + } } }