Ensure that the internal list of additional attributes to display is never null

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5792 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Gavin Cornwell
2007-05-29 09:07:31 +00:00
parent 4202d686f4
commit c3b15747fa

View File

@@ -803,7 +803,14 @@ public final class SearchContext implements Serializable
*/
public void setSimpleSearchAdditionalAttributes(List<QName> attrs)
{
this.simpleSearchAdditionalAttrs = attrs;
if (attrs == null)
{
this.simpleSearchAdditionalAttrs = new ArrayList<QName>(4);
}
else
{
this.simpleSearchAdditionalAttrs = attrs;
}
}
/**