Skip to content

Commit

Permalink
Bucket: catch unchecked exception to continue with CoreException
Browse files Browse the repository at this point in the history
was IndexOutOfBoundsException
#1721
  • Loading branch information
Jörg Kubitz authored and jukzi committed Feb 6, 2025
1 parent 27852ff commit b085177
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,9 @@ private Map<String, Object> loadEntries(File indexFile) throws CoreException, IO
resultEntries.put(readEntryKey(source), readEntryValue(source));
}
return resultEntries;
} catch (RuntimeException e) {
String msg = NLS.bind(Messages.properties_readProperties, indexFile.toString());
throw new ResourceException(IResourceStatus.FAILED_READ_METADATA, null, msg, e);
}
}

Expand Down

0 comments on commit b085177

Please sign in to comment.