Skip to content

Commit 53dcd41

Browse files
committed
Catch NoClassDefFoundError while locating sources
If the locator is unable to locate some sources due to a classlaoding problem this currently leads to an ugly exception window showing up. This now adds NoClassDefFoundError to the catch clause to prevent annoy the user in such case.
1 parent 79c6bb3 commit 53dcd41

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ui/org.eclipse.pde.core/src/org/eclipse/pde/internal/core/SourceLocationManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ private IPath searchExtensionLocations(IPath relativePath, IPluginBase plugin) {
323323
return getExtensions().locators.stream().map(locator -> {
324324
try {
325325
return locator.locator.locateSource(plugin);
326-
} catch (RuntimeException e) {
326+
} catch (RuntimeException | NoClassDefFoundError e) {
327327
return null;
328328
}
329329
}).filter(Objects::nonNull).findFirst().orElse(null);

0 commit comments

Comments
 (0)