Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

peptidewithsetmods get hashcode bug #450

Open
trishorts opened this issue Jan 22, 2019 · 1 comment
Open

peptidewithsetmods get hashcode bug #450

trishorts opened this issue Jan 22, 2019 · 1 comment

Comments

@trishorts
Copy link
Contributor

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?

@zrolfs
Copy link
Contributor

zrolfs commented Jan 22, 2019

#428

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

No branches or pull requests

2 participants