fluenda / ParCEFone

JAVA Common Event Format log parser
Apache License 2.0
8 stars 7 forks source link

Ignore empty extensions instead of failing #29

Closed pvillard31 closed 2 years ago

pvillard31 commented 2 years ago

I have a system (Pulse Secure) generating logs that may contain empty extensions. This would generate errors such as

Exception java.lang.NumberFormatException: For input string: ""

This pull request changes the parsing so that empty extensions are just skipped. If we want to have this done according to a parameter (similar to the validate option), let me know.