Skip to content

Avoid NPE when bad queryKey is provided#252

Open
labkey-adam wants to merge 2 commits intodevelopfrom
fb_pepdb_npe
Open

Avoid NPE when bad queryKey is provided#252
labkey-adam wants to merge 2 commits intodevelopfrom
fb_pepdb_npe

Conversation

@labkey-adam
Copy link
Contributor

Rationale

The crawler induced an NPE in pepdb-getPeptides.view by supplying a bogus queryKey parameter value

Changes

  • Convert a couple chains of if statements into switch (thanks, Claude)
  • Show the search form and an error message if queryKey is unrecognized. This matches the queryKey missing case.

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.

1 participant