Fix: Crash on dev server login.
Since we are now also including sender id while creating the person
object in Person.getOrUpdate(), ormlite createOrUpdate is safe to execute.
@@ -153,7 +153,7 @@ public class Person {
// use the person id passed to generate person skeleton object which is consistent
// with server id.
person.setId(personId);
- app.getDao(Person.class).create(person);
+ app.getDao(Person.class).createOrUpdate(person);
} else {
boolean changed = false;
if (name != null && !name.equals(person.name)) {
