bitcoin/bitcoin — pull request #1963 by sipa (2012-10-28 18:16:15+00:00)
Title: Bugfix: don't crash by trying to write unchanged best block

When interrupted early at startup, it was possible to have the shutdown code try to write NULL as the new best block.