Skip to content

Commit

Permalink
Merge pull request #378 from nl-portal/feature/fix-vestigingsnummer-i…
Browse files Browse the repository at this point in the history
…s-null

Fix for vestigingsnummer. Was returning a "null" instead null, which …
  • Loading branch information
flinden68 authored Feb 20, 2025
2 parents 8b3d8d5 + 431ddec commit aaae4e9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ dokkaVersion=2.0.0

org.gradle.jvmargs=-Xmx6g -XX:MaxMetaspaceSize=2048m
org.gradle.workers.max=10
version=1.4.42-SNAPSHOT
version=1.4.43-SNAPSHOT
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import nl.nlportal.portal.authentication.domain.PortalAuthentication
import nl.nlportal.portal.authentication.domain.SUB_KEY
import org.springframework.security.core.GrantedAuthority
import org.springframework.security.oauth2.jwt.Jwt
import java.util.UUID
import java.util.*

abstract class CommonGroundAuthentication(
jwt: Jwt,
Expand Down Expand Up @@ -52,7 +52,7 @@ abstract class CommonGroundAuthentication(
* @return VestigingsNummer
*/
fun getVestigingsNummer(): String? {
return ((token.claims[AANVRAGER_KEY] as Map<*, *>?) ?: token.claims)[VESTIGINGNUMMER_KEY].toString()
return ((token.claims[AANVRAGER_KEY] as Map<*, *>?) ?: token.claims)[VESTIGINGNUMMER_KEY]?.toString()
}

/**
Expand Down

0 comments on commit aaae4e9

Please sign in to comment.