Skip to content

Commit

Permalink
Merge #1039 from ElucidataInc/fix_untargetedCrash
Browse files Browse the repository at this point in the history
[Fix] Check for untargeted group before accessing compound
  • Loading branch information
shubhra-agrawal authored Apr 24, 2019
2 parents 20757a7 + 1e44272 commit a35ff52
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/gui/mzroll/tabledockwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -601,6 +601,7 @@ void TableDockWidget::exportGroupsToSpreadsheet() {
auto prmGroupAt = find_if(begin(allgroups),
end(allgroups),
[] (PeakGroup& group) {
if (group.compound == nullptr) return false;
return group.compound->type() == Compound::Type::PRM;
});
bool prmGroupExists = prmGroupAt != end(allgroups);
Expand Down

0 comments on commit a35ff52

Please sign in to comment.