Skip to content

RomProperty can't load a data matrix that has meta data but no table data #521

@COBrogan

Description

@COBrogan

Error in:

RomProperty$new(ds, config = list(pid = 5006812), TRUE)

Error in raw_data$tabledata[[1]] : subscript out of bounds

The issue is in the self$load_data(config, load_remote) ultimately stemming from self$from_list(). The issue is below since tabledata technically is returned from the JSON, but it is an empty named list() which can't be indexed by index 1

raw_data = jsonlite::fromJSON(config$data_matrix)
              if ("tabledata" %in% names(raw_data)) {
                data_header <- raw_data$tabledata[[1]]

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions