Skip to content

Commit

Permalink
Merge pull request #282 from MarvNC/fix-import-null-yomi-term-bank-tag
Browse files Browse the repository at this point in the history
Fix for Meaning Tag Being Null in Yomichan Term Bank
  • Loading branch information
arianneorpilla authored Jul 26, 2023
2 parents cf862b7 + 6e81d10 commit 645b45e
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,13 @@ Future<Map<DictionaryHeading, List<DictionaryEntry>>>
String reading = item[1] as String;

double popularity = (item[4] as num).toDouble();
List<String> entryTagNames = (item[2] as String).split(' ');

// Third entry in array can be null
List<String> entryTagNames = [];
if (item[2] != null) {
entryTagNames = (item[2] as String).split(' ');
}

List<String> headingTagNames = (item[7] as String).split(' ');

List<String> definitions = [];
Expand Down

0 comments on commit 645b45e

Please sign in to comment.