do not fail with a NPE when you have checked out a revision instead of a branch