Skip to content

Commit

Permalink
fix(data): fix potential NPE in the SeriesData#rawIndexOf function
Browse files Browse the repository at this point in the history
  • Loading branch information
plainheart committed Nov 23, 2024
1 parent 18f8ea3 commit d303a5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/data/SeriesData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -866,7 +866,7 @@ class SeriesData<
throw new Error('Do not supported yet');
}
}
const rawIndex = invertedIndices[value];
const rawIndex = invertedIndices && invertedIndices[value];
if (rawIndex == null || isNaN(rawIndex)) {
return INDEX_NOT_FOUND;
}
Expand Down

0 comments on commit d303a5f

Please sign in to comment.