diff options
author | Daniel Teske <daniel.teske@digia.com> | 2014-07-31 16:53:32 +0200 |
---|---|---|
committer | Daniel Teske <daniel.teske@digia.com> | 2014-07-31 17:56:10 +0200 |
commit | bb42157f04639a29b1521d33899bf377c1b7eb80 (patch) | |
tree | 2319f128bd0bebb9e999c59fa225bdc247b5c6fa | |
parent | 1c4b960d51fe24be2a78a32ebf4eee62332a5652 (diff) |
Android: Prevent crash if running on a terget without deployconfiguration
Should be impossible to do, but the stacktrace in the linked task shows
that it is possible somehow.
Task-number: QTCREATORBUG-12776
Change-Id: I1f2054bbaa132c29dfc4579fb7020f364bddd939
Reviewed-by: BogDan Vatra <bogdan@kde.org>
-rw-r--r-- | src/plugins/android/androidglobal.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/android/androidglobal.h b/src/plugins/android/androidglobal.h index dc93a878b4..f8f29e1b1a 100644 --- a/src/plugins/android/androidglobal.h +++ b/src/plugins/android/androidglobal.h @@ -47,6 +47,8 @@ public: template<class T> static T *buildStep(const ProjectExplorer::DeployConfiguration *dc) { + if (!dc) + return 0; ProjectExplorer::BuildStepList *bsl = dc->stepList(); if (!bsl) return 0; |