TISTUD-5221: handle the potential NPE when the project is disconnected from git.
Merge pull request #113 from mxia/tistud-5221

TISTUD-5221: handle the potential NPE when the project is disconnected f...