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(jans): added null check to avoid NullPointerException #3077

Merged
merged 1 commit into from
Nov 24, 2022

Conversation

pujavs
Copy link
Contributor

@pujavs pujavs commented Nov 24, 2022

Prepare


Description

Added null check to resolve two NullPointerException

  1. CustomObjectAttribute NPE while executing User management endpoint - jenkins build
    Error: Caused by: java.lang.NullPointerException at io.jans.orm.model.base.CustomObjectAttribute.getDisplayValue(CustomObjectAttribute.java:92)

  2. LocalizedString while testing OpenID Client functionality
    Error: Caused by: java.lang.NullPointerException at io.jans.orm.model.base.LocalizedString.getLanguageTags(LocalizedString.java:77)

Target issue

closes #3074

Implementation Details


Test and Document the changes

  • Static code analysis has been run locally and issues have been fixed
  • Relevant unit and integration tests have been added/updated
  • Relevant documentation has been updated if any (i.e. user guides, installation and configuration guides, technical design docs etc)

@mo-auto mo-auto added comp-jans-config-api Component affected by issue or PR comp-jans-orm Component affected by issue or PR kind-bug Issue or PR is a bug in existing functionality labels Nov 24, 2022
@sonarcloud
Copy link

sonarcloud bot commented Nov 24, 2022

[jans-config-api-parent] Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp-jans-config-api Component affected by issue or PR comp-jans-orm Component affected by issue or PR kind-bug Issue or PR is a bug in existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fix(jans): add null check to avoid NullPointerException
3 participants