Closed ZigaSajovic closed 4 months ago
Busy week (like always). I'll try it out over the weekend. Otherwise to reproduce the issue, the one could simply remove ordinary dividend entries from XML and see what happens
@pronebird I did test it like that and it works. I just didn't want to say, it works, merge it :)
This pull request fixes crashes in cases like https://github.com/jamsix/ib-edavki/issues/117.
Bug
The original code did not define the
closestDividend
variable in the case where there was no corresponding dividend, but continued execution. After the branch it assumed the existence ofclosestDividend
, which caused the crash.Fix
The code now records all the cases of missing correspondence and reports this to the user on detection before aborting execution. An example of the output can be seen bellow.
@pronebird if you still have the faulty input from yesterday, try it out please.