Project can be null if AncestorInPath does not contain AbstractProject... a posibility that may be important if/when somebody decides to try for multi-branch free-style projects (which I have implemented, but they blow up on form validation because loads of plugins assume they have an ancestorInPath of type AbstractProject ;-)