Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Goetz <markus@woboq.com>2017-01-13 18:08:16 +0300
committerMarkus Goetz <markus@woboq.com>2017-01-17 16:52:10 +0300
commit588a88fb63f1a4265d180c3dabf668aeee6cf1d8 (patch)
treee76aed5054e4a210136325c3cbed6f1459699d8a /src/gui/main.cpp
parentcd9e88ad222ddb4fe68336f9099d84a072f4c1fb (diff)
Updater: Don't create instance for invalid URL
Also don't use dynamic_cast For enterprise/#689
Diffstat (limited to 'src/gui/main.cpp')
-rw-r--r--src/gui/main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/main.cpp b/src/gui/main.cpp
index 003fcfd51..392ced1b5 100644
--- a/src/gui/main.cpp
+++ b/src/gui/main.cpp
@@ -107,7 +107,8 @@ int main(int argc, char **argv)
// if handleStartup returns true, main()
// needs to terminate here, e.g. because
// the updater is triggered
- if (Updater::instance()->handleStartup()) {
+ Updater *updater = Updater::instance();
+ if ( updater && updater->handleStartup()) {
return true;
}