Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jgit-dev] InvalidObjectIdException in ReflogEntryImpl.<init>

One of our users just ran into:

> org.eclipse.jgit.errors.InvalidObjectIdException: Invalid id
> 	at org.eclipse.jgit.lib.ObjectId.fromHexString(ObjectId.java:245)
> 	at org.eclipse.jgit.lib.ObjectId.fromString(ObjectId.java:220)
> 	at org.eclipse.jgit.internal.storage.file.ReflogEntryImpl.<init>(ReflogEntryImpl.java:72)
> 	at org.eclipse.jgit.internal.storage.file.ReflogReaderImpl.getReverseEntries(ReflogReaderImpl.java:128)

IMHO, all IllegalArgumentExceptions in ReflogEntryImpl should be changed
to IOExceptions. Do you agree?

-Marc


Back to the top