Skip to content

NullPointerException when SeverityReasons are missing from vulnerability #323

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

Closed
jorander opened this issue Mar 27, 2023 · 1 comment · Fixed by #324
Closed

NullPointerException when SeverityReasons are missing from vulnerability #323

jorander opened this issue Mar 27, 2023 · 1 comment · Fixed by #324
Labels
bug Something isn't working

Comments

@jorander
Copy link

Describe the bug
The plug-in throws NullPointerException when trying to show information for a vulnerability that does not have any severity reason data.

java.lang.NullPointerException: Cannot invoke "java.util.List.stream()" because the return value of "com.jfrog.ide.common.nodes.subentities.ResearchInfo.getSeverityReasons()" is null at com.jfrog.ide.idea.ui.webview.WebviewObjectConverter.convertIssueToDepPage(WebviewObjectConverter.java:19) at com.jfrog.ide.idea.ui.JFrogLocalToolWindow.updateIssueOrLicenseInWebview(JFrogLocalToolWindow.java:247) at com.jfrog.ide.idea.ui.JFrogLocalToolWindow.lambda$registerListeners$1(JFrogLocalToolWindow.java:124) ...

To Reproduce
Scan a codebase with a vulnerability that does not have any serverity reason data, e.g. XRAY-199921.
Click the vulnerabiltity in the tree-view.

Expected behavior
Missing data is handled and vulnerability information rendered.

Screenshots
N/A

Versions

  • JFrog IDEA plugin version: 2.1.2
  • Operating system: RHEL 8.7
  • Xray version: 7.49.3

Additional context
N/A

@jorander jorander added the bug Something isn't working label Mar 27, 2023
@yahavi
Copy link
Member

yahavi commented Mar 28, 2023

@jorander
Thanks for using the JFrog IDEA plugin.
We merged #324 to fix this issue.
We'll let you know once the new version is released.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants