Added null protected around RagfairInfo
on profile login
This commit is contained in:
parent
b101cd8eed
commit
35daf8710f
@ -152,6 +152,15 @@ export class GameController
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (fullProfile.characters.pmc.RagfairInfo)
|
||||||
|
{
|
||||||
|
if (Number.isNaN(fullProfile.characters.pmc.RagfairInfo.rating))
|
||||||
|
{
|
||||||
|
this.logger.warning(`Profile: ${sessionID} ragfair rating was not a valid number, resetting to 0`);
|
||||||
|
fullProfile.characters.pmc.RagfairInfo.rating = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (Array.isArray(fullProfile.characters.pmc.WishList))
|
if (Array.isArray(fullProfile.characters.pmc.WishList))
|
||||||
{
|
{
|
||||||
fullProfile.characters.pmc.WishList = {};
|
fullProfile.characters.pmc.WishList = {};
|
||||||
|
Loading…
Reference in New Issue
Block a user