eclipse-windowbuilder / windowbuilder

Eclipse Windowbuilder
https://projects.eclipse.org/projects/tools.windowbuilder
Eclipse Public License 1.0
78 stars 30 forks source link

Fix NPE when MigLayout bundle has been added as external jar #820

Closed ptziegler closed 1 month ago

ptziegler commented 1 month ago

When a bundle is not in the workspace, the call to getResource() returns null, leading to an exception when trying to extract the bundle version.

We mustn't modify files outside the workspace, so we simply return early.

Fixes https://github.com/eclipse-windowbuilder/windowbuilder/issues/819