Commit dd29cdd7 authored by Tiago Cunha's avatar Tiago Cunha

NPE on email list

parent 5a456472
......@@ -87,7 +87,7 @@ public class RealmUser extends RealmObject {
public User asUser() {
// convert email list
final int total = emails.size();
final int total = emails != null ? emails.size() : 0;
final List<Email> coreEmails = new ArrayList<>(total);
for (int i = 0; i < total; i++) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment