Skip to content

Commit b085177

Browse files
Jörg Kubitzjukzi
authored andcommitted
Bucket: catch unchecked exception to continue with CoreException
was IndexOutOfBoundsException #1721
1 parent 27852ff commit b085177

File tree

1 file changed

+3
-0
lines changed
  • resources/bundles/org.eclipse.core.resources/src/org/eclipse/core/internal/localstore

1 file changed

+3
-0
lines changed

resources/bundles/org.eclipse.core.resources/src/org/eclipse/core/internal/localstore/Bucket.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,9 @@ private Map<String, Object> loadEntries(File indexFile) throws CoreException, IO
380380
resultEntries.put(readEntryKey(source), readEntryValue(source));
381381
}
382382
return resultEntries;
383+
} catch (RuntimeException e) {
384+
String msg = NLS.bind(Messages.properties_readProperties, indexFile.toString());
385+
throw new ResourceException(IResourceStatus.FAILED_READ_METADATA, null, msg, e);
383386
}
384387
}
385388

0 commit comments

Comments
 (0)