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

crash in analyse_baSAR() #183

Closed
mcol opened this issue Aug 29, 2024 · 0 comments
Closed

crash in analyse_baSAR() #183

mcol opened this issue Aug 29, 2024 · 0 comments

Comments

@mcol
Copy link
Contributor

mcol commented Aug 29, 2024

data(ExampleData.RLum.Analysis, envir = environment())
analyse_baSAR(
      object = list(IRSAR.RF.Data, IRSAR.RF.Data),
      plot = FALSE,
      verbose = FALSE,
      txtProgressBar = FALSE,
      n.MCMC = 100)
# Error in object@records[[x]] : subscript out of bounds
# In addition: Warning messages:
# 1: [get_RLum()] This request produced an empty list of records! 
# 2: [get_RLum()] This request produced an empty list of records!

Because get_RLum() returns an empty list of records for both elements in the list, inside analyse_baSAR() object@records has length 0, but this is not checked before attempting to extract an element from it.

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

No branches or pull requests

2 participants