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

NullPointerException in RoutingDataSourceHealthContributor when a routing data source has a target with a null routing key #27698

Closed
wants to merge 3 commits into from

Commits on Aug 16, 2021

  1. Fixing the NullPointerException in RoutingDataSourceHealthContributor

    The RoutingDataSourceHealthContributor constructor throws a NullPointerException (NPE) if the provided map has a null key. With this commit the NPE issue has been fixed by filtering the entries that are not-null. 
    
    This closes spring-projects#27694
    safeeransari-gc committed Aug 16, 2021
    Configuration menu
    Copy the full SHA
    8d241d8 View commit details
    Browse the repository at this point in the history
  2. Author added

    Updating the file author as per the commit message guide
    safeeransari-gc committed Aug 16, 2021
    Configuration menu
    Copy the full SHA
    e9699e5 View commit details
    Browse the repository at this point in the history
  3. Saving the datasource in map with null key as 'unnamed'

    Instead of throwing an exception, the datasource will be saved as 'unnamed' in the map. In this commit, the 'unnamed' key has been added, along with the required tests
    safeeransari-gc committed Aug 16, 2021
    Configuration menu
    Copy the full SHA
    05ba629 View commit details
    Browse the repository at this point in the history