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

Fix null handling in updateUndoRedoState method #1657

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1244,7 +1244,10 @@
updateUndoRedoState();
}

private void updateUndoRedoState() {
private void updateUndoRedoState() {

Check failure on line 1247 in modules/javafx.controls/src/main/java/javafx/scene/control/TextInputControl.java

View check run for this annotation

openjdk / jcheck-openjdk/jfx-1657

Whitespace error

Column 40: trailing whitespace Column 41: trailing whitespace Column 42: trailing whitespace Column 43: trailing whitespace Column 44: trailing whitespace Column 45: trailing whitespace Column 46: trailing whitespace Column 47: trailing whitespace
if (undoChange == null) {
return;
}
undoable.set(undoChange != undoChangeHead);
redoable.set(undoChange.next != null);
}
Expand Down