From d5bc25ae238916176510bf48c4c67ddfa3480ace Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej Date: Tue, 2 May 2017 13:08:06 +0200 Subject: [PATCH] src/gui/upnpbrowser.cpp fix segfault on connect error Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/cc0f0cd951b7be88bd0d452b3387f3288297cd16 Author: Jacek Jendrzej Date: 2017-05-02 (Tue, 02 May 2017) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/gui/upnpbrowser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/upnpbrowser.cpp b/src/gui/upnpbrowser.cpp index 9b6bf89b1..7458db5f7 100644 --- a/src/gui/upnpbrowser.cpp +++ b/src/gui/upnpbrowser.cpp @@ -731,7 +731,7 @@ bool CUpnpBrowserGui::selectItem(std::string id) if (!getItems(id, liststart, entries, total)) return endall; - while (loop) { + while (loop && entries!=NULL) { updateTimes(); updateMode();