Crash on commit to existing branch

Issue #5255 duplicate
Anonymous created an issue

During committing select any existing branch, enter comment and press Commit. It crashes. Version 4.5.0 ask - "Do you want to reopen the existing branch?" And everything is working. On version 4.7.1 - it not ask - it crashes.