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

webapp: Fix bug for wrong java path and empty coverage report #1840

Merged
merged 1 commit into from
Nov 26, 2024

Conversation

arthurscchan
Copy link
Contributor

This PR fixes two bugs.

  1. For the source path, it could be class name or java source file path. The transformation only needed when it is a java class name. This PR fixes it to only do the replacement when it is not a file path ends with .java.

  2. When project_info retrieve an empty coverage_data (for failed coverage build), the direct map retrieval will result in error. This PR fixes that by adding an empty check before the use of the map data.

Signed-off-by: Arthur Chan <[email protected]>
@arthurscchan arthurscchan marked this pull request as ready for review November 26, 2024 22:08
@DavidKorczynski DavidKorczynski merged commit 842b7c9 into ossf:main Nov 26, 2024
7 checks passed
@arthurscchan arthurscchan deleted the fix-bug-java-path branch January 16, 2025 14:23
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