mzLib icon indicating copy to clipboard operation
mzLib copied to clipboard

peptidewithsetmods get hashcode bug

Open trishorts opened this issue 6 years ago • 1 comments

you can make peptidewithsetmods without digestion params. if you do that and then call gethashcode you get a crash becuase digestionparames is null.

public override int GetHashCode() { return FullSequence.GetHashCode() + DigestionParams.Protease.GetHashCode(); }

can we check if null and return fullsequence hashcode as fallback?

trishorts avatar Jan 22 '19 17:01 trishorts

#428

zrolfs avatar Jan 22 '19 17:01 zrolfs