-
Notifications
You must be signed in to change notification settings - Fork 210
Colors are null in Section onPaint and cause null pointer exception #2972 #2973
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
Colors are null in Section onPaint and cause null pointer exception #2972 #2973
Conversation
…clipse-platform#2972 Changed code found in Section.class (onPaint) which lets null values slip through and cause null pointer exception. Fixes eclipse-platform#2972
bundles/org.eclipse.ui.forms/src/org/eclipse/ui/forms/widgets/Section.java
Outdated
Show resolved
Hide resolved
Test Results 1 824 files ± 0 1 824 suites ±0 1h 35m 1s ⏱️ -42s For more details on these failures, see this check. Results for commit 6f6235f. ± Comparison against base commit 0368ee5. ♻️ This comment has been updated with latest results. |
@selundqma thank you for proposing a fix. I am leaving the office now but if the matter is not urgent then I can merge tomorrow. Would it be possible to provide a Snippet or describe the steps necessary to reproduce the original error (#2972)? The only way I know how to manually test the sections is by opening the simple form editor But that doesn't reproduce the error. Or can you at least reproduce the error in your product so that you can test my proposed fix? |
Will there be a new integration build for me to install and test? Then it would be no problem to check if the fix is doing it´s job. |
As soon as I merge this PR (today) then you can rely on a new I-BUILD (tomorrow). A hint: I usually "hack" my way into testing these small issues. What I usually do is:
In this particular case it would mean:
HTH |
Feel free to merge when you want to :). |
I restarted the tests on Mac unnecessarily, the failing test was already documented: #294. Merging. |
I have now tested the new code by taking the Section.class file from eclipse-SDK-I20250513-1800 (eclipse\plugins\org.eclipse.ui.forms_3.13.500.v20250513-1103.jar) and put it into the org.eclipse.ui.forms_3.13.500.v20250426-1415.jar of my built RCP application. Works just fine! Thank you! |
Changed code found in Section.class (onPaint) which lets null values slip through and cause null pointer exception.
Fixes #2972