You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Actual behavior:
The branchPoint("unknown") returns null if the specified branch point does not exist (or is not found). Therefore, countCommitsSince(branchPoint("unknown")) may throw a NullPointerException because it currently does not check for null.
Expected behavior: countCommitsSince should check if the incoming value of obj is null and return -1 if so.
Actual behavior:
The
branchPoint("unknown")
returnsnull
if the specified branch point does not exist (or is not found). Therefore,countCommitsSince(branchPoint("unknown"))
may throw aNullPointerException
because it currently does not check fornull
.Expected behavior:
countCommitsSince
should check if the incoming value ofobj
isnull
and return-1
if so.I've provided a fix in Pull Request #4.
The text was updated successfully, but these errors were encountered: