fix potential crash when saving user object

This commit is contained in:
Phillip Thelen 2016-08-01 15:12:24 +02:00
parent 913ba35752
commit 8a467b04c4

View file

@ -312,8 +312,10 @@ public class HabitRPGUser extends BaseModel {
t.user_id = id;
}
for (Tag t : tags) {
t.user_id = id;
if (tags != null) {
for (Tag t : tags) {
t.user_id = id;
}
}
super.save();