Skip to content

[FIX] FileInfo: no crash on a peptide identification without hits - #10497

Merged
jpfeuffer merged 1 commit into
OpenMS:developfrom
okohlbacher:claude/fileinfo-hitless-peptide-id-20261010
Oct 10, 2026
Merged

jpfeuffer merged 1 commit into
OpenMS:developfrom
okohlbacher:claude/fileinfo-hitless-peptide-id-20261010

Conversation

@okohlbacher

Copy link
Copy Markdown
Contributor

FileInfo read getHits()[0] behind PeptideIdentification::empty(), which is never true for a loaded idXML/mzIdentML (the run identifier is set), so a hit-less identification crashed it.
Fix: guard on getHits().empty().
Test: TOPP_FileInfo_22 (idXML with one hit-less identification) segfaults without the fix.

🤖 Generated with Claude Code

…reading hit 0

The guard used PeptideIdentification::empty(), which is false for every loaded
identification (it carries its run identifier), so getHits()[0] was read on an
empty hit list. TOPP_FileInfo_22 (an idXML with a hit-less identification)
crashes without the fix.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@coderabbitai

coderabbitai Bot commented Oct 10, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 55 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 4 included reviews currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 22dfea38-b3f9-43f1-bfb9-ed1ec4565c7b

📥 Commits

Reviewing files that changed from the base of the PR and between a5720bb and ddfe82e.


📒 Files selected for processing (5)
  • CHANGELOG
  • src/openms/source/FORMAT/FileInfo.cpp
  • src/tests/topp/CMakeLists.txt
  • src/tests/topp/FileInfo_22_input.idXML
  • src/tests/topp/FileInfo_22_output.txt

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@jpfeuffer jpfeuffer left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Interesting. What does empty on a PeptideID even check?

@jpfeuffer
jpfeuffer merged commit 5cb2c4d into OpenMS:develop Oct 10, 2026
29 checks passed
timosachsenberg added a commit that referenced this pull request Oct 15, 2026
Combines the entries of the open CHANGELOG pull requests #10387, #10483,
#10511, #10535, #10555 and #10580 into one change on top of develop, and
covers #10252 and #10267, whose edits develop already carries.

- OpenMS Library: PeptDeepLibraryPredictor (#10380),
  OpenSwathLibraryPreparation (#10373), BedRModFile (#10529), FLASH
  averagine/cosine fix (#10543), WebAssembly-found fixes (#10558),
  MzMLSqliteHandler array length check (#10471), Percolator data race
  (#10474). #10471 and #10543 were each proposed by two of the PRs; they
  appear once.
- TOPP tools: OpenDIA as a new tool (#10373), qualified by the review on
  #10387 (peptidoform inference needs workflow:working_format sqlite), and
  the NucleicAcidSearchEngine options of #10526, #10529-#10532, moved from
  the top of the release block into the tool's section together with the
  NucleicAcidSearchEngine bullet that sat there outside any section.
- Restore the ProteomicsLFQ -feat_dir entry (#10481, #10486) and the three
  FileInfo entries (#10497, #10498, #10499) that the merge of #10470
  dropped, and remove the second copy of the -write_cwl entry it added
  (cited #10459, tab indentation replaced by spaces).
- Build System: ONNX Runtime versioned files and symlinks (#10465).
- 3.6.0: #10255 made WITH_WNETALIGN opt-in; it did not change the ONNX
  Runtime requirement (review on #10267).


Claude-Session: https://claude.ai/code/session_01QfTdEQjN4tBfS49WcriPYu

Co-authored-by: Claude <[email protected]>
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.

2 participants