I need to call some git functions from my program. I am getting NPE
and may be I am not properly instantiating the class.
GitBlit gitblit = new GitBlit();
gitblit.getRepositoryList();
Is this the wrong way?
Even I tried with GitBlit.self().getRepositoryList();
and still the output was an NPE
.
I have a gitblit server running my local machine as https://milestones.af.com:8443
Here's an answer from James Moger to the same question asked in the GitBlit forum: