Skip to content
This repository has been archived by the owner on Aug 23, 2023. It is now read-only.

NullPointerException in AbstractRevisionHistory when MAX_REVISIONS_TO_SEARCH is exceeded in the default case #7

Open
GoogleCodeExporter opened this issue May 10, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?

Try to 'Moe magic' a repository with > MAX_REVISIONS_TO_SEARCH (=400)
revisions to visit.

Results in NullPointerException in AbstractRevisionHistory.java:60,
specifically, `revision` is null in the following block of code:

        if (visited.size() > MAX_REVISIONS_TO_SEARCH) {
          throw new MoeProblem(String.format(
              "Couldn't find a matching revision for matcher (%s) in repo %s within %d revisions.",
              matcher,
              revision.repositoryName,
              MAX_REVISIONS_TO_SEARCH));
        }

Original issue reported on code.google.com by [email protected] on 31 Jan 2013 at 6:16

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

No branches or pull requests

1 participant