forked from qt-creator/qt-creator
Maemo: Fix crash in run config with non-Maemo deploy configuration.
This commit is contained in:
@@ -120,6 +120,8 @@ public:
|
||||
template<class T> static T *earlierBuildStep(const ProjectExplorer::DeployConfiguration *dc,
|
||||
const ProjectExplorer::BuildStep *laterBuildStep)
|
||||
{
|
||||
if (!dc)
|
||||
return 0;
|
||||
const ProjectExplorer::BuildStepList * const bsl = dc->stepList();
|
||||
const QList<ProjectExplorer::BuildStep *> &buildSteps = bsl->steps();
|
||||
for (int i = 0; i < buildSteps.count(); ++i) {
|
||||
|
@@ -310,7 +310,7 @@ QString MaemoRunConfiguration::remoteExecutableFilePath() const
|
||||
|
||||
MaemoPortList MaemoRunConfiguration::freePorts() const
|
||||
{
|
||||
return deployStep()->freePorts();
|
||||
return deployStep() ? deployStep()->freePorts() : MaemoPortList();
|
||||
}
|
||||
|
||||
bool MaemoRunConfiguration::useRemoteGdb() const
|
||||
|
Reference in New Issue
Block a user