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

RHINENG-12299: fix index out of range error #1472

Merged
merged 1 commit into from
Sep 2, 2024

Conversation

psegedy
Copy link
Member

@psegedy psegedy commented Sep 2, 2024

panic: runtime error: index out of range [0] with length 0
goroutine 261071 [running]:
app/base/database.GetBaselineConfig(0xc03a4e1040)
/go/src/app/base/database/baseline.go:31 +0x445
app/evaluator.limitVmaasToBaseline(0x0?, 0xc03a565d40)
/go/src/app/evaluator/evaluate_baseline.go:12 +0x2a
app/evaluator.evaluateWithVmaas(0x19f48b8?, 0xc03a4e1040, 0xc03a4e1040?)
/go/src/app/evaluator/evaluate.go:285 +0x4c
app/evaluator.evaluateInDatabase({0x19f48b8, 0xc00082e320}, 0xc0004d5d50, {0xc015ce2a50, 0x24})
/go/src/app/evaluator/evaluate.go:230 +0xa6
app/evaluator.Evaluate({0x19f48b8, 0xc00082e320}, 0xc023e47550?, {0xc015ce2a50, 0x24}, {0xc00004a011, 0x6})
/go/src/app/evaluator/evaluate.go:146 +0x21c
app/evaluator.runEvaluate.func1()
/go/src/app/evaluator/evaluate.go:186 +0x6c
created by app/evaluator.runEvaluate in goroutine 206
/go/src/app/evaluator/evaluate.go:185 +0x273 

Secure Coding Practices Checklist GitHub Link

Secure Coding Checklist

  • Input Validation
  • Output Encoding
  • Authentication and Password Management
  • Session Management
  • Access Control
  • Cryptographic Practices
  • Error Handling and Logging
  • Data Protection
  • Communication Security
  • System Configuration
  • Database Security
  • File Management
  • Memory Management
  • General Coding Practices

Copy link

jira-linking bot commented Sep 2, 2024

Referenced Jiras:
https://issues.redhat.com/browse/RHINENG-12299

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 65.01%. Comparing base (2e46900) to head (4266f9c).
Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1472   +/-   ##
=======================================
  Coverage   65.01%   65.01%           
=======================================
  Files         114      114           
  Lines        7823     7823           
=======================================
  Hits         5086     5086           
  Misses       2207     2207           
  Partials      530      530           
Flag Coverage Δ
unittests 65.01% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@psegedy psegedy merged commit ebaa313 into RedHatInsights:master Sep 2, 2024
3 of 4 checks passed
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.

4 participants