8000 Fix NPE when MigLayout bundle has been added as external jar by ptziegler · Pull Request #820 · eclipse-windowbuilder/windowbuilder · GitHub
[go: up one dir, main page]

Skip to content

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

Merged
ptziegler merged 1 commit intoeclipse-windowbuilder:masterfrom
ptziegler:issue819
Jul 11, 2024
Merged

Fix NPE when MigLayout bundle has been added as external jar#820
ptziegler merged 1 commit intoeclipse-windowbuilder:masterfrom
ptziegler:issue819

Conversation

@ptziegler
Copy link
Contributor

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 #819

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 eclipse-windowbuilder#819
@ptziegler ptziegler added this to the 1.17.0 milestone Jul 11, 2024
@ptziegler ptziegler merged commit 823f712 into eclipse-windowbuilder:master Jul 11, 2024
@ptziegler ptziegler deleted the issue819 branch July 11, 2024 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Set MigLayout: NullPointerException: Cannot invoke "org.eclipse.core.resources.IResource.getFullPath()" because "bundleFile" is null

1 participant

0