diff options
Diffstat (limited to 'protocols/FacebookRM/src/proto.cpp')
-rw-r--r-- | protocols/FacebookRM/src/proto.cpp | 6 |
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);
|