Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
8.0.0-M2
-
None
-
None
Description
The MP-JWT ClaimBean implementation fails with a null pointer exception if claim can't be found.
try
{ final Class<?> type = (Class<?>) ip.getType(); final String claimValue = getClaimValue(key).toString(); return (T) PropertyEditors.getValue(type, claimValue); }catch (Exception e)
{ logger.warning(e.getMessage()); }
We should check the getClaimValue(key) value before calling toString on it.