Replies: 2 comments 1 reply
0 replies
It may hide the original problem: |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hi,
During Eclipse shutdown, I'm seeing a NullPointerException originating from CModelManager.shutdown() with a following stack trace:
Line throwing NPE in shutdown() is:
Platform.getContentTypeManager().removeContentTypeChangeListener(this);My understanding is that Platform.getContentTypeManager() can return null if the Platform's content type manager has already been stopped before CCorePlugin.stop() runs (shutdown ordering race condition). The fix would be a simple null guard:
IContentTypeManager ctm = Platform.getContentTypeManager();
if (ctm != null) {
ctm.removeContentTypeChangeListener(this);
}
Does the root cause analysis above is correct, or is there something I'm missing
Environment: Eclipse [2026-03], CDT [12.4]
All reactions