Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NPE in GitFileVersionControllerTest #284

Closed
barredijkstra opened this issue Jul 9, 2013 · 1 comment
Closed

NPE in GitFileVersionControllerTest #284

barredijkstra opened this issue Jul 9, 2013 · 1 comment

Comments

@barredijkstra
Copy link
Contributor

When running the GitFileVersionControllerTest, I run into a NPE with:

    shouldReadRecentChanges()
    shouldAddFileToVersionControl()
    shouldDeleteFileFromVersionControl()

They all fail with

java.lang.NullPointerException
    at org.eclipse.jgit.lib.ObjectIdOwnerMap.get(ObjectIdOwnerMap.java:131)
    at org.eclipse.jgit.revwalk.RevWalk.parseAny(RevWalk.java:815)
    at org.eclipse.jgit.revwalk.RevWalk.parseCommit(RevWalk.java:730)
    at fitnesse.wiki.fs.GitFileVersionsController.getCurrentVersion(GitFileVersionsController.java:179)
    at fitnesse.wiki.fs.GitFileVersionsController.makeVersion(GitFileVersionsController.java:132)
    at fitnesse.wiki.fs.FileSystemPage.commit(FileSystemPage.java:157)
    at fitnesse.wiki.fs.VersionsControllerFixture.savePageWithContent(VersionsControllerFixture.java:48)
    at fitnesse.wiki.fs.GitFileVersionsControllerTest.shouldDeleteFileFromVersionControl(GitFileVersionsControllerTest.java:35)

Environment: Win8, JDK7

barredijkstra pushed a commit to barredijkstra/fitnesse that referenced this issue Jul 9, 2013
Added replacement of the windows \ file separator with the *nix / file separator since jgit can't deal with the windows one.
@barredijkstra
Copy link
Contributor Author

Fixed with merge of #282, closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant