From c5adb9e0568d4915a8554189d8afa164ead67ac4 Mon Sep 17 00:00:00 2001 From: rtz12 Date: Sun, 13 Nov 2016 03:53:05 +0100 Subject: Noch mal ein Nil-Check damit nicht alles stirbt ohne Anilist-Client 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 { } func (u *User) HasExternalServices() bool { - return u.AnilistClient.IsCoupled + return (u.AnilistClient != nil && u.AnilistClient.IsCoupled) } func (u *User) ExternalServices() []ExternalService { -- cgit v0.10.1