aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrtz12 <koenig@fagott.pw>2016-11-13 02:53:05 (UTC)
committerrtz12 <koenig@fagott.pw>2016-11-13 02:53:05 (UTC)
commitc5adb9e0568d4915a8554189d8afa164ead67ac4 (patch)
tree836bd50f11746a3f438864b3cd880ff5a80f19e4
parent1e92d1fd37d2fa2dd99e68082e224b8ed7d634fb (diff)
Noch mal ein Nil-Check damit nicht alles stirbt ohne Anilist-Client
-rw-r--r--user.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/user.go b/user.go
index cea3420..e43e1ee 100644
--- a/user.go
+++ b/user.go
@@ -31,7 +31,7 @@ func (u *User) GetName() string {
31} 31}
32 32
33func (u *User) HasExternalServices() bool { 33func (u *User) HasExternalServices() bool {
34 return u.AnilistClient.IsCoupled 34 return (u.AnilistClient != nil && u.AnilistClient.IsCoupled)
35} 35}
36 36
37func (u *User) ExternalServices() []ExternalService { 37func (u *User) ExternalServices() []ExternalService {