Open GoogleCodeExporter opened 8 years ago
HgRepository.java:211 is repoDir.getParentFile() call. repoDir points to '.hg/'
folder, thus non-root assumption seems valid. As for (1) non-absolute path, the
way HgLookup builds repository location makes me think File object supplied to
HgRepository can be read, and as such won't yield errors like that. However,
I've changed HgLookup to explicitly convert to absolute path right away just in
case.
The only chance for HgRepository.repoDir to be null and cause this NPE is
HgRepository.isInvalid == true, no repository was found in the specified
location.
Original comment by tikhomir...@gmail.com
on 24 Feb 2011 at 7:11
Original issue reported on code.google.com by
kit...@gmail.com
on 24 Feb 2011 at 6:13