diff options
author | (no author) <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10> | 2008-02-24 19:29:00 +0000 |
---|---|---|
committer | (no author) <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10> | 2008-02-24 19:29:00 +0000 |
commit | c0e72534cf1d6abeb77485abab65db0d1c159c45 (patch) | |
tree | 40f7385f97a9222b087800691f284b16640db777 /metacontacts/meta_utils.c | |
parent | 497d9deafacde174f27e094121c3acf57d4f1b83 (diff) |
More crash fixes
git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@400 4f64403b-2f21-0410-a795-97e2b3489a10
Diffstat (limited to 'metacontacts/meta_utils.c')
-rw-r--r-- | metacontacts/meta_utils.c | 3 |
1 files changed, 2 insertions, 1 deletions
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
|