diff --git a/src/Character.js b/src/Character.js index 8b63883c..9dfd5933 100644 --- a/src/Character.js +++ b/src/Character.js @@ -500,13 +500,15 @@ class Character extends Metadatable(EventEmitter) { * @fires Character#unfollowed */ unfollow() { - this.following.removeFollower(this); - /** - * @event Character#unfollowed - * @param {Character} following - */ - this.emit('unfollowed', this.following); - this.following = null; + if (this.following) { + this.following.removeFollower(this); + /** + * @event Character#unfollowed + * @param {Character} following + */ + this.emit('unfollowed', this.following); + this.following = null; + } } /**