Skip to content

Commit

Permalink
Fixed #14326
Browse files Browse the repository at this point in the history
  • Loading branch information
palvarezlopez committed Feb 18, 2024
1 parent bd05a57 commit dfd7b3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/netedit/frames/data/GNEMeanDataFrame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ GNEMeanDataFrame::MeanDataSelector::refreshMeanDataSelector(bool afterChangingID
myMeanDataComboBox->appendIconItem(sortedMeanData.first.c_str(), sortedMeanData.second->getACIcon());
}
// make sure that mean data exists
if (myMeanDataFrameParent->getViewNet()->getNet()->getAttributeCarriers()->retrieveMeanData(myCurrentMeanData->getTagProperty().getTag(), myCurrentMeanData->getID(), false)) {
if (myCurrentMeanData && myMeanDataFrameParent->getViewNet()->getNet()->getAttributeCarriers()->retrieveMeanData(myCurrentMeanData->getTagProperty().getTag(), myCurrentMeanData->getID(), false)) {
bool validMeanData = false;
for (int i = 0; i < (int)myMeanDataComboBox->getNumItems(); i++) {
if (myMeanDataComboBox->getItemText(i) == myCurrentMeanData->getID()) {
Expand Down

0 comments on commit dfd7b3a

Please sign in to comment.