Skip to content

Commit

Permalink
Simulation Experiment view: prevent the third crash in issue #1630.
Browse files Browse the repository at this point in the history
  • Loading branch information
agarny committed May 3, 2018
1 parent 7d768fc commit 055ac53
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -886,7 +886,11 @@ void SimulationExperimentViewSimulationWidget::initialize(bool pReloadingView)

if (sedmlFileIssues.isEmpty() && combineArchiveIssues.isEmpty()) {
foreach (const CellMLSupport::CellmlFileIssue &issue,
runtime?runtime->issues():mSimulation->cellmlFile()->issues()) {
runtime?
runtime->issues():
mSimulation->cellmlFile()?
mSimulation->cellmlFile()->issues():
CellMLSupport::CellmlFileIssues()) {
information += QString(OutputTab+"<span"+OutputBad+"><strong>%1</strong> %2.</span>"+OutputBrLn).arg((issue.type() == CellMLSupport::CellmlFileIssue::Error)?tr("Error:"):tr("Warning:"))
.arg(issue.message());
}
Expand Down

0 comments on commit 055ac53

Please sign in to comment.