diff --git a/webapp/src/edu/cornell/mannlib/vitro/webapp/beans/SelfEditingConfiguration.java b/webapp/src/edu/cornell/mannlib/vitro/webapp/beans/SelfEditingConfiguration.java index 6d21fc388..d69f3341e 100644 --- a/webapp/src/edu/cornell/mannlib/vitro/webapp/beans/SelfEditingConfiguration.java +++ b/webapp/src/edu/cornell/mannlib/vitro/webapp/beans/SelfEditingConfiguration.java @@ -126,7 +126,9 @@ public class SelfEditingConfiguration { /** * Get all Individuals associated with this externalAuthId through the - * matching property. Never returns null. + * matching property. If the externalAuthId is empty or null, it won't match + * anything, even though many individuals might have empty matching + * properties. Never returns null. */ public List getAssociatedIndividuals(IndividualDao indDao, String externalAuthId) { @@ -138,6 +140,10 @@ public class SelfEditingConfiguration { log.debug("externalAuthId is null"); return Collections.emptyList(); } + if (externalAuthId.isEmpty()) { + log.debug("externalAuthId is empty"); + return Collections.emptyList(); + } if (selfEditingIdMatchingProperty == null) { log.debug("selfEditingMatchingProperty is null"); return Collections.emptyList();