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

6514600: AbstractAction can throw NullPointerException when clone()d #377

Closed
wants to merge 1 commit into from

Conversation

prsadhuk
Copy link
Contributor

@prsadhuk prsadhuk commented Sep 28, 2020

Please review a fix for an issue whereby it is seen that AbstractAction which has had its values clear()ed or nulled fails to clone and throws NPE.
This is because AbstractAction contains an inner class ArrayTable, whose 'table' field is lazily instantiated, and nulled on clear(), and thus can be null. The clone() method assumes it is not null.
Proposed fix is to add a check for null for "table" field in clone().


Progress

  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue
  • Change must be properly reviewed

Issue

  • JDK-6514600: AbstractAction can throw NullPointerException when clone()d

Reviewers

Download

$ git fetch https://git.openjdk.java.net/jdk pull/377/head:pull/377
$ git checkout pull/377

@bridgekeeper
Copy link

bridgekeeper bot commented Sep 28, 2020

👋 Welcome back psadhukhan! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@openjdk openjdk bot added the rfr Pull request is ready for review label Sep 28, 2020
@openjdk
Copy link

openjdk bot commented Sep 28, 2020

@prsadhuk The following label will be automatically applied to this pull request: swing.

When this pull request is ready to be reviewed, an RFR email will be sent to the corresponding mailing list. If you would like to change these labels, use the /label (add|remove) "label" command.

@openjdk openjdk bot added the swing client-libs-dev@openjdk.org label Sep 28, 2020
@mlbridge
Copy link

mlbridge bot commented Sep 28, 2020

Webrevs

@openjdk
Copy link

openjdk bot commented Sep 28, 2020

@prsadhuk This change now passes all automated pre-integration checks.

ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for more details.

After integration, the commit message for the final commit will be:

6514600: AbstractAction can throw NullPointerException when clone()d

Reviewed-by: serb, pbansal

You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed.

At the time when this comment was updated there had been 28 new commits pushed to the master branch:

As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details.

➡️ To integrate this PR with the above commit message to the master branch, type /integrate in a new comment.

@openjdk openjdk bot added the ready Pull request is ready to be integrated label Sep 28, 2020
Copy link

@pankaj-bansal pankaj-bansal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

@prsadhuk
Copy link
Contributor Author

/integrate

@openjdk openjdk bot closed this Sep 29, 2020
@openjdk openjdk bot added integrated Pull request has been integrated and removed ready Pull request is ready to be integrated rfr Pull request is ready for review labels Sep 29, 2020
@openjdk
Copy link

openjdk bot commented Sep 29, 2020

@prsadhuk Since your change was applied there have been 42 commits pushed to the master branch:

  • b659132: 8252888: Collapse G1MMUTracker class hierarchy
  • e63b90c: 8251358: Clean up Access configuration after Shenandoah barrier change
  • 9c17a35: 8253748: StressIGV tests fail with release VMs
  • 70b0fcc: 8253728: tests fail with "assert(fr.is_compiled_frame()) failed: Wrong frame type"
  • 527b0e4: 8248984: Bump minimum boot jdk to JDK 15
  • ac15d64: 8241151: Incorrect lint warning for no definition of serialVersionUID in a record
  • d25b03e: 8253616: Change to GCC 10.2 for building on Linux at Oracle
  • 821bd08: 8253667: ProblemList tools/jlink/JLinkReproducible{,3}Test.java on linux-aarch64
  • 1ae6b53: 8252194: Add automated test for fix done in JDK-8218469
  • 77a0f39: 8253540: InterpreterRuntime::monitorexit should be a JRT_LEAF function
  • ... and 32 more: https://git.openjdk.java.net/jdk/compare/dcde95ba0d68a3aa3f2f405c6141d645a52c28e4...master

Your commit was automatically rebased without conflicts.

Pushed as commit 55c90a1.

💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored.

@prsadhuk prsadhuk deleted the JDK-6514600 branch September 29, 2020 08:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
integrated Pull request has been integrated swing client-libs-dev@openjdk.org
Development

Successfully merging this pull request may close these issues.

3 participants