mirror of
https://github.com/magefree/mage.git
synced 2026-01-26 21:29:17 -08:00
Re-add guard if a line item isn't parsed as expected in TokenRepository
This commit is contained in:
parent
9b4b6b3355
commit
2f66f9634c
1 changed files with 6 additions and 0 deletions
|
|
@ -200,6 +200,12 @@ public enum TokenRepository {
|
|||
}
|
||||
}
|
||||
|
||||
// type - unknown
|
||||
if (tokenType == null) {
|
||||
errorsList.add("Tokens database: unknown line format: " + line);
|
||||
continue;
|
||||
}
|
||||
|
||||
// OK
|
||||
TokenInfo token = new TokenInfo(tokenType, tokenName, setCode, imageNumber, tokenClassName);
|
||||
list.add(token);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue