grijjy / GrijjyFoundation

Foundation classes used by other Grijjy repositories
Other
247 stars 88 forks source link

FIX: Size check to avoid range-check-exception #52

Closed RadiRadiesel2 closed 1 year ago

RadiRadiesel2 commented 1 year ago

Hi Eric, at some point, when trying to write empty string with the TgoBsonWriter, there is a range-check-exception (obviously only if range-check is active in compiler settings). In my case, when entering the function, I had the following szenario:

erikvanbilsen commented 1 year ago

Thank you for this contribution! I merged the fix.