WrenSecurity / wrensec-commons

Community fork of ForgeRock Commons, which contains common utility code used by multiple products originally developed by ForgeRock.
http://wrensecurity.org
0 stars 10 forks source link

Fix NPE when preferred locales are missing. #49

Closed karelmaxa closed 10 months ago

karelmaxa commented 10 months ago

This PR fixes NPE when no preferred locales are specified. This occurs when the CREST request is built directly (e.g. ResourceFunctions.java#L943) and locale is not set in HttpAdapter component (HttpAdapter.java#L739).