mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
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:
@@ -802,9 +802,16 @@ public final class SearchContext implements Serializable
|
|||||||
* @param attrs The list of attributes to search against
|
* @param attrs The list of attributes to search against
|
||||||
*/
|
*/
|
||||||
public void setSimpleSearchAdditionalAttributes(List<QName> attrs)
|
public void setSimpleSearchAdditionalAttributes(List<QName> attrs)
|
||||||
|
{
|
||||||
|
if (attrs == null)
|
||||||
|
{
|
||||||
|
this.simpleSearchAdditionalAttrs = new ArrayList<QName>(4);
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
this.simpleSearchAdditionalAttrs = attrs;
|
this.simpleSearchAdditionalAttrs = attrs;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add an additional attribute to search against
|
* Add an additional attribute to search against
|
||||||
|
Reference in New Issue
Block a user