Skip to content

Conversation

@vogella
Copy link
Contributor

@vogella vogella commented Jan 14, 2026

Fixes an IllegalArgumentException in PartServiceImpl.addPart that occurs when the shared editor area ('org.eclipse.ui.editorss') is not found.

The modelService.findElements method was called with a null searchRoot (area) when the editor area could not be located, triggering an assertion failure. This change adds a null check to handle this case gracefully.

Verified by running OpenCloseTest which now passes.

@vogella
Copy link
Contributor Author

vogella commented Jan 14, 2026

IMHO this is reasonable behavior the PartService

@eclipse-platform-bot
Copy link
Contributor

This pull request changes some projects for the first time in this development cycle.
Therefore the following files need a version increment:

bundles/org.eclipse.e4.ui.workbench/META-INF/MANIFEST.MF

An additional commit containing all the necessary changes was pushed to the top of this PR's branch. To obtain these changes (for example if you want to push more changes) either fetch from your fork or apply the git patch.

Git patch
From fe1235d544c9e69e70773eec3805119015755662 Mon Sep 17 00:00:00 2001
From: Eclipse Platform Bot <platform-bot@eclipse.org>
Date: Wed, 14 Jan 2026 10:34:56 +0000
Subject: [PATCH] Version bump(s) for 4.39 stream


diff --git a/bundles/org.eclipse.e4.ui.workbench/META-INF/MANIFEST.MF b/bundles/org.eclipse.e4.ui.workbench/META-INF/MANIFEST.MF
index 554b5c1479..e4549f5e79 100644
--- a/bundles/org.eclipse.e4.ui.workbench/META-INF/MANIFEST.MF
+++ b/bundles/org.eclipse.e4.ui.workbench/META-INF/MANIFEST.MF
@@ -1,7 +1,7 @@
 Manifest-Version: 1.0
 Bundle-ManifestVersion: 2
 Bundle-SymbolicName: org.eclipse.e4.ui.workbench;singleton:=true
-Bundle-Version: 1.18.100.qualifier
+Bundle-Version: 1.18.200.qualifier
 Bundle-Name: %pluginName
 Bundle-Vendor: %providerName
 Bundle-Localization: plugin
-- 
2.52.0

Further information are available in Common Build Issues - Missing version increments.

@github-actions
Copy link
Contributor

github-actions bot commented Jan 14, 2026

Test Results

 3 015 files  ±0   3 015 suites  ±0   2h 19m 10s ⏱️ - 28m 2s
 8 268 tests ±0   8 020 ✅ ±0  248 💤 ±0  0 ❌ ±0 
23 628 runs  ±0  22 837 ✅ ±0  791 💤 ±0  0 ❌ ±0 

Results for commit 0da2546. ± Comparison against base commit c8588d6.

♻️ This comment has been updated with latest results.

@vogella vogella force-pushed the fix-partservice-npe branch from d677c8e to 0a09322 Compare January 14, 2026 11:23
vogella and others added 2 commits January 14, 2026 14:06
If the shared editor area ("org.eclipse.ui.editorss") is not found in the
container, 'area' is null. Passing this null 'area' to
modelService.findElements caused an IllegalArgumentException (via
Assert.isLegal) because the search root cannot be null.

This change adds a null check for 'area'. If 'area' is null, it treats it
as if no shared stacks were found, preventing the exception.
@vogella vogella force-pushed the fix-partservice-npe branch from 0a09322 to 0da2546 Compare January 14, 2026 13:06
@vogella vogella merged commit 128b1f3 into eclipse-platform:master Jan 15, 2026
18 checks passed
@vogella vogella deleted the fix-partservice-npe branch January 15, 2026 08:20
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.

2 participants