Hello,
I developped a plugin for our Bitbucket Instance. I use the getFromHash() method from the RefChange class.
When using it in my plugin, i, and it’s kind of logic, has the attached stackTrace
com.atlassian.bitbucket.commit.NoSuchCommitException: Commit '0000000000000000000000000000000000000000' does not exist in repository 'databases'.
I found a few links with people having the same Issue
Aside a simple and not so elegant correction such as this one
if (optionalRefChange.get().getFromHash().equals("0000000000000000000000000000000000000000")) {
doSomething();
} else {
doAnotherThing();
}
does anyone has an idea about why is the method bugged and how to solve it ?