prevent NPE when repo can't be retrieved. #26