Closed nictru closed 1 month ago
Well apparently it is possible. Is autoSql itself undefined? I will add a check.
You are right; autoSql
has to be undefined for this to occur - thanks in advance for adding the check!
Hmm, there's already a check in the line you reference. What version are you using?
if ("biginteract" === format || (autoSql && ('chromatinInteract' === autoSql.table) || 'interact' === autoSql.table)) {
I used 2.15 when the error first occurred, upgraded to 3.0.1 afterwards.
When looking at the check:
(autoSql && ('chromatinInteract' === autoSql.table) || 'interact' === autoSql.table)
Let's say autoSql
is undefined, then we get:
(FALSE && ('chromatinInteract' === autoSql.table) || 'interact' === autoSql.table)
which leads to
(FALSE || 'interact' === autoSql.table)
and then
('interact' === autoSql.table)
So yes there is a check, but the way the brackets are arranged it is not effective. But should be an easy fix:
if ("biginteract" === format || (autoSql && (('chromatinInteract' === autoSql.table) || ('interact' === autoSql.table)))) {
Ahh yes, I see now, the parens are out of place, thanks. That is a bug, will fix it.
Receied this error when loading a bigbed file. Surprises me as I was already able to load some other bigbed files.
Stacktrace says:
When looking at the location in the source code, I assume the problem occurs in this line. Is it possible that
autoSql.table
is undefined?