FasterXML / jackson-dataformats-binary

Uber-project for standard Jackson binary format backends: avro, cbor, ion, protobuf, smile
Apache License 2.0
310 stars 133 forks source link

Fixed #434: Add null check before accessing integer size #435

Closed arthurscchan closed 9 months ago

arthurscchan commented 9 months ago

This PR fixes https://github.com/FasterXML/jackson-dataformats-binary/issues/434 by adding a null check before accessing the result returning from the IonReader::getIntegerSize() method and wrap it with a try catch block to handle possible NullPointerException thrown from underlying logics.