-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
None
The NPE is due to the following code: -
} else if (callback instanceof AvailableRealmsCallback) { Collection<String> names = stateRef.get().getMechanismConfiguration().getMechanismRealmNames(); if (log.isTraceEnabled()) { log.tracef("Handling AvailableRealmsCallback: realms = [%s]", String.join(", ", names)); } if (! names.isEmpty()) { ((AvailableRealmsCallback) callback).setRealmNames(names.toArray(new String[names.size()])); } handleOne(callbacks, idx + 1);
If mechanism configuration is mandatory this should report an appropriate error, if not it should fallback to specifying an empty list.