bitcoin/bitcoin — pull request #5078 by luke-jr (2014-10-12 02:28:22+00:00)
Title: Bugfix: CreateNewBlock: Check that active chain has a valid tip before dereferencing it

Unlikely, but might as well check it...