Skip to content

Conversation

@SteffenHeu
Copy link
Member

@SteffenHeu SteffenHeu commented Feb 3, 2025

fixes #2397

if (collissionEnergy == null) {
return false;
}
if (Float.compare(collissionEnergy, buildingInfo.getCollisionEnergy()) == 0) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure if this case may happen... but buildingInfo.getCollisionEnergy may be null. Maybe change the second check right before this one to:

if (collissionEnergy == null || buildingInfo.getCollisionEnergy()==null) {
    return false;
}

@robinschmid robinschmid merged commit 799a00a into mzmine:master Feb 12, 2025
6 checks passed
@SteffenHeu SteffenHeu deleted the empty-coll-energy branch February 12, 2025 17:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature does not get MS2 spectra in MZmine 4.5.0

2 participants