From 6bbc0a78423fa98d659826faf12303093ec70123 Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Sun, 18 Aug 2013 15:10:01 +0000 Subject: try to fix a crash git-svn-id: http://svn.miranda-ng.org/main/trunk@5733 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/FTPFileYM/src/ftpfile.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/FTPFileYM/src/ftpfile.cpp b/plugins/FTPFileYM/src/ftpfile.cpp index 53b2c5ef1f..2ae9808654 100644 --- a/plugins/FTPFileYM/src/ftpfile.cpp +++ b/plugins/FTPFileYM/src/ftpfile.cpp @@ -230,7 +230,8 @@ int PrebuildContactMenu(WPARAM wParam, LPARAM lParam) void PrebuildMainMenu() { for (int i=0; i < ServerList::FTP_COUNT; i++) - Menu_ShowItem(hMainSubMenu[i], ftpList[i]->bEnabled); + if (ftpList[i]) + Menu_ShowItem(hMainSubMenu[i], ftpList[i]->bEnabled); } int TabsrmmButtonPressed(WPARAM wParam, LPARAM lParam) -- cgit v1.2.3