-
Notifications
You must be signed in to change notification settings - Fork 512
8237372: NullPointerException in TabPaneSkin.stopDrag #89
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
Conversation
Test simulates a single mouse-released event. Fix simply guards against the null case.
👋 Welcome back rlichten! A progress list of the required criteria for merging this PR into |
Webrevs
|
@arapte - can you review this? The only question I have is whether is is expected that |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The scenario mentioned in JDK-8237372 seems valid scenario. However I am not sure if the scenario can be avoided or not. Irrespective of that, the code in question should be corrected. Suggested a minor change.
modules/javafx.controls/src/main/java/javafx/scene/control/skin/TabPaneSkin.java
Outdated
Show resolved
Hide resolved
Make check depend on dragState, not on dragTabHeader != null Remove early return which makes method clearer
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a simple enough change that 1 reviewer will suffice -- @arapte will review.
I did notice some unrelated changes that should be reverted.
modules/javafx.controls/src/main/java/javafx/scene/control/skin/TabPaneSkin.java
Outdated
Show resolved
Hide resolved
modules/javafx.controls/src/main/java/javafx/scene/control/skin/TabPaneSkin.java
Outdated
Show resolved
Hide resolved
modules/javafx.controls/src/main/java/javafx/scene/control/skin/TabPaneSkin.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix looks good, suggested minor changes in test.
modules/javafx.controls/src/test/java/test/javafx/scene/control/TabPaneTest.java
Outdated
Show resolved
Hide resolved
modules/javafx.controls/src/test/java/test/javafx/scene/control/TabPaneTest.java
Outdated
Show resolved
Hide resolved
Cleaned up tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The fix looks good to me.
Verified that the new test fails before and passes after fix and observed no test failures.
@effad This change now passes all automated pre-integration checks. When the change also fulfills all project specific requirements, type
Since the source branch of this PR was last updated there have been 4 commits pushed to the As you do not have Committer status in this project, an existing Committer must agree to sponsor your change. Possible candidates are the reviewers of this PR (@arapte, @kevinrushforth) but any other Committer may sponsor as well. ➡️ To flag this PR as ready for integration with the above commit message, type |
I don't have any additional comment, so this is good to go with 1 reviewer. @arapte can sponsor this. |
/integrate |
/sponsor |
@arapte @effad The following commits have been pushed to jfx14 since your change was applied:
Your commit was automatically rebased without conflicts. Pushed as commit 5a0e71b. |
Mailing list message from Ambarish Rapte on openjfx-dev: Changeset: 5a0e71b 8237372: NullPointerException in TabPaneSkin.stopDrag Reviewed-by: arapte ! modules/javafx.controls/src/main/java/javafx/scene/control/skin/TabPaneSkin.java |
Mailing list message from Ambarish Rapte on openjfx-dev: Changeset: 5a0e71b 8237372: NullPointerException in TabPaneSkin.stopDrag Reviewed-by: arapte ! modules/javafx.controls/src/main/java/javafx/scene/control/skin/TabPaneSkin.java |
Test simulates a single mouse-released event.
Fix simply guards against the null case.
Progress
Issue
JDK-8237372: NullPointerException in TabPaneSkin.stopDrag
Approvers