FindBranches null pointer