fix NPE when project is null #556