Note, that Lexeme.getParsedValue() may return null. Unless you're 100% sure the value is never null (in other words, if lexeme with expected identity exists, it is always populated with a proper value for certain), the value should be checked for nullness, and proper action should be taken on null value (e.g. record error result, skip related part in parsing).
Note, that
Lexeme.getParsedValue()
may returnnull
. Unless you're 100% sure the value is nevernull
(in other words, if lexeme with expected identity exists, it is always populated with a proper value for certain), the value should be checked for nullness, and proper action should be taken onnull
value (e.g. record error result, skip related part in parsing)._Originally posted by @petringo in https://github.com/fmidev/fmi-avi-messageconverter-tac/pull/117#discussion_r989808690_