Skip to content

Commit 0e1d294

Browse files
committed
Let the annotation indexer ignore .jar files that have gone AWOL
This happens for example when the ImageJ2 updater removes obsolete versions, therefore we have to handle that situation gracefully. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
1 parent b371fd3 commit 0e1d294

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/main/java/org/scijava/annotations/Index.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,12 @@ public IndexItemIterator(final Class<A> annotation) {
142142
private void readNext() throws IOException {
143143
for (;;) {
144144
if (indexReader == null) {
145-
indexReader = getNextReader();
145+
try {
146+
indexReader = getNextReader();
147+
} catch (IOException e) {
148+
e.printStackTrace();
149+
continue;
150+
}
146151
if (indexReader == null) {
147152
urls = null;
148153
next = null;

0 commit comments

Comments
 (0)