From c0e72534cf1d6abeb77485abab65db0d1c159c45 Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10> Date: Sun, 24 Feb 2008 19:29:00 +0000 Subject: More crash fixes git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@400 4f64403b-2f21-0410-a795-97e2b3489a10 --- metacontacts/meta_utils.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'metacontacts/meta_utils.c') diff --git a/metacontacts/meta_utils.c b/metacontacts/meta_utils.c index e6d1706..f6fcb74 100644 --- a/metacontacts/meta_utils.c +++ b/metacontacts/meta_utils.c @@ -1190,7 +1190,8 @@ void Meta_SetGroup(HANDLE hContact) { if(ServiceExists(MS_CLUI_METASUPPORT)) return; proto = (char *)CallService(MS_PROTO_GETCONTACTBASEPROTO, (WPARAM)hContact, 0); - uid = (char *)CallProtoService(proto, PS_GETCAPS, PFLAG_UNIQUEIDSETTING, 0); + if (proto) + uid = (char *)CallProtoService(proto, PS_GETCAPS, PFLAG_UNIQUEIDSETTING, 0); if(proto && uid && (int)uid != CALLSERVICE_NOTFOUND && !strcmp(JABBER_UNIQUE_ID_SETTING, uid)) { // if it's a jabber contact, hide it, and record the fact that it was us who did -- cgit v1.2.3