Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Fix NPE in PDEModelUtility.java (line 415) by adding null check (Fix #1404) #1479

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

slvo-loading
Copy link

Summary Of Change
Added a null guard to editor.getContextManager() to prevent NullPointerException (NPE).

Why this Change is Needed
An NPE occurs when too many processes are running and the user uses the context menu to close all tabs. This is caused by a race condition where dispose() is called while modifyEditorModel() is still running, resulting in getContextManager() returning null.

Related Issue
Fix #1404

Testing
Testing is in progress. We are working on a test where dispose() is called followed by modifyEditorModel() to verify that the null guard resolves the issue.

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.

NPE in PDEModelUtility.java:415
1 participant