buildbot/buildbot — pull request #295 by jaredmorrow (2012-01-06 22:22:05+00:00)
Title: Fix MailNotifier crash due to failure to check against NoneType

This is a fix for the following crash:

```
2012-01-06 11:26:29-0700 [-] Unhandled error in Deferred:
2012-01-06 11:26:29-0700 [-] Unhandled Error
Traceback (most recent call last):
File "/home/buildbot/sandbox/lib/python2.6/site-packages/Twisted-11.1.0-py2.6-linux-x86_64.egg/twisted/internet/defer.py", line 545, in _runCallbacks
current.result = callback(current.result, *args, **kw)
File "/home/buildbot/sandbox/lib/python2.6/site-packages/Twisted-11.1.0-py2.6-linux-x86_64.egg/twisted/internet/defer.py", line 796, in _cbDeferred
self.callback(self.resultList)
File "/home/buildbot/sandbox/lib/python2.6/site-packages/Twisted-11.1.0-py2.6-linux-x86_64.egg/twisted/internet/defer.py", line 362, in callback
self._startRunCallbacks(result)
File "/home/buildbot/sandbox/lib/python2.6/site-packages/Twisted-11.1.0-py2.6-linux-x86_64.egg/twisted/internet/defer.py", line 458, in _startRunCallbacks
self._runCallbacks()
--- ---
File "/home/buildbot/sandbox/lib/python2.6/site-packages/Twisted-11.1.0-py2.6-linux-x86_64.egg/twisted/internet/defer.py", line 545, in _runCallbacks
current.result = callback(current.result, *args, **kw)
File "/home/buildbot/sandbox/lib/python2.6/site-packages/buildbot-0.8.5-py2.6.egg/buildbot/status/mail.py", line 420, in _gotBuilds
if self.isMailNeeded(build, build.results):
exceptions.AttributeError: 'NoneType' object has no attribute 'results'
```