this should be ```return nullptr;``` since the return type is a ```DTSegmentCand*``` not a ```bool```.