diff --git a/src/scripts/classes/mapping/platform-user.ts b/src/scripts/classes/mapping/platform-user.ts index 9f9e621..266f6aa 100644 --- a/src/scripts/classes/mapping/platform-user.ts +++ b/src/scripts/classes/mapping/platform-user.ts @@ -143,6 +143,9 @@ export default class PlatformUser implements ILazy { //#region Public methods public setID(id: number): void { + // Check ID + if (!id || id < 1) throw new InvalidID(INVALID_USER_ID); + this._id = id; }