diff --git a/core/achievement.js b/core/achievement.js index 7b6a4b16..a5de541f 100644 --- a/core/achievement.js +++ b/core/achievement.js @@ -48,6 +48,9 @@ class Achievement { } static factory(data) { + if(!data) { + return; + } let achievement; switch(data.type) { case Achievement.Types.UserStatSet :