summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2013-10-20 06:39:22 +0000
committerRobert Pösel <robyer@seznam.cz>2013-10-20 06:39:22 +0000
commitf78da8806b1c32ffef88f5bc2abe224037f0e36e (patch)
tree506410e68cbea81e0d6e50e95192d936e75406f0 /protocols/FacebookRM
parentc12702e77fa2e539f48301be4f04861c503dea08 (diff)
Facebook: crashfix
git-svn-id: http://svn.miranda-ng.org/main/trunk@6546 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM')
-rw-r--r--protocols/FacebookRM/src/proto.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/protocols/FacebookRM/src/proto.cpp b/protocols/FacebookRM/src/proto.cpp
index 989f75344d..df81e435ae 100644
--- a/protocols/FacebookRM/src/proto.cpp
+++ b/protocols/FacebookRM/src/proto.cpp
@@ -525,8 +525,10 @@ INT_PTR FacebookProto::VisitProfile(WPARAM wParam,LPARAM lParam)
} else {
// No homepage link, create and save it
val = getStringA(hContact, FACEBOOK_KEY_ID);
- url += val;
- setString(hContact, "Homepage", url.c_str());
+ if (val != NULL) {
+ url += val;
+ setString(hContact, "Homepage", url.c_str());
+ }
}
OpenUrl(url);