From f78da8806b1c32ffef88f5bc2abe224037f0e36e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Sun, 20 Oct 2013 06:39:22 +0000 Subject: Facebook: crashfix git-svn-id: http://svn.miranda-ng.org/main/trunk@6546 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/FacebookRM/src/proto.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'protocols/FacebookRM/src/proto.cpp') 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); -- cgit v1.2.3