When there is project with null location eg. SAP ADT project. Then switching branches fails due to NullPointerException.