mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-05-23 14:17:15 +00:00
fix potential crash when saving user object
This commit is contained in:
parent
913ba35752
commit
8a467b04c4
1 changed files with 4 additions and 2 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue