Comments (6)
Also fails with SDK for M2 (I20220428-1800) and with the 4.23 release version.
This is a regression in 4.23 compared to 4.22 and seems to be related to the change that uses this dialog (in 4.23):
vs this one in 4.22:
Hopefully someone reading this recognizes this change and knows where to direct this bug.
from eclipse.platform.ui.
The dialog was changed via bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=577476.
Adding @BeckerWdf
from eclipse.platform.ui.
The error happens when the preference dialog is closed:
@Override
public boolean close() {
if (showViewHandler != null) {
IHandlerService service = PlatformUI.getWorkbench().getService(IHandlerService.class);
service.deactivateHandler(showViewHandler);
showViewHandler.getHandler().dispose();
showViewHandler = null;
}
...
}
"service" is null in this case.
The cause seems to be that the restart is triggered while the dialog is open. Before the restart was triggered after the dialog was closed. So how should we fix this?
a) First close the dialog and then trigger the restart
b) Simply fix this NPE?
from eclipse.platform.ui.
What about asyncExec the restart? This should first close the dialog and then perform the restart...
from eclipse.platform.ui.
By the way regardless of the fix it might be good to check for null service return and give a better error message then running into NPE if the service is mandatory.
from eclipse.platform.ui.
By the way regardless of the fix it might be good to check for null service return and give a better error message then running into NPE if the service is mandatory.
But that would be another fix in another issue.
from eclipse.platform.ui.
Related Issues (20)
- Can't switch buffers by filtering for buffer names including the letter "B"
- Minimized View stacks should offer to show text labels for the Views HOT 4
- Find/Replace Overlay: Close by escape even when in editor
- Find/Replace Overlay - Show result number HOT 2
- find/replace overlay - Notification API uses old X HOT 3
- Tasks view can no longer be sorted by priority HOT 3
- Ctrl+3 (quick search): allow toggling options directly in the search dialog HOT 2
- Notification-Overlay: old x-icon is shown when I hover over the new x HOT 1
- Find/Replace Overlay: when closing another view, the overlay completely closes itself
- Preferences should be a view HOT 12
- Find/Replace Overlay: doesn't escape RegEx selection when opening HOT 1
- Find/Replace overlay: UNIX-line separators are not interpreted correctly on Windows
- Find/Replace overlay: remember parameters from earlier
- Find/Replace overlay: weird placement when unmaximizing HOT 1
- Find/Replace Overlay unused fields
- Find - Shortcut for the next event
- Find/Replace does not work HOT 2
- Eclipse editors do not immediately release focus when pressing Alt+TAB (Linux, KDE) HOT 8
- Find/Replace Overlay: Lost in Manifest editor
- Users of the Find/Replace dialog want to use Alt + A to perform "Search all"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eclipse.platform.ui.