Skip to content

Commit

Permalink
Catch NPE when attempting load of chrom alias object when none exists
Browse files Browse the repository at this point in the history
  • Loading branch information
jrobinso committed Oct 26, 2023
1 parent 7209cd6 commit f330ef4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion js/genome/genome.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,9 @@ class Genome {
let chromAliasRecord
if (this.chromAlias) {
chromAliasRecord = await this.chromAlias.search(chr)
chr = chromAliasRecord.chr
if(chromAliasRecord) {
chr = chromAliasRecord.chr
}
}

if (!this.chromosomes.has(chr)) {
Expand Down

0 comments on commit f330ef4

Please sign in to comment.