You might consider submitting an error report in Github.
Anyway, to help you a little further:
The file where this is handled is /controllers/front/ParentOrderController.php
The code handling it start with:
if (Tools::isSubmit('submitReorder') && $idOrder = (int) Tools::getValue('id_order'))
In the (older) version where I checked this it was at line 87.