fmidev / fmi-avi-messageconverter-tac

Conversion module for aviation TAC messages
MIT License
1 stars 4 forks source link

Handle Lexeme.getParsedValue() nulls in SIGMET/AIRMET parsing #150

Open kasarit opened 1 year ago

kasarit commented 1 year ago

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).

_Originally posted by @petringo in https://github.com/fmidev/fmi-avi-messageconverter-tac/pull/117#discussion_r989808690_