diff --git a/process/Attribute_lib/process.js b/process/Attribute_lib/process.js
index a63657e1845b171133e16ed696d2b502848bef9b..442b2b3dd497cc0cab01417dddc4efb4b913fe29 100644
--- a/process/Attribute_lib/process.js
+++ b/process/Attribute_lib/process.js
@@ -29,7 +29,7 @@ function AttributeUtil () {}
  */
 AttributeUtil.getPossibleAttributes = function (pObjectType, pIncludeGroups, pFilteredAttributeIds, pAttributeCount)
 {
-    if (pObjectType == null)
+    if (pObjectType == null || (pFilteredAttributeIds && pFileredAttributeIds.length == 0))
         return [];
     
     var attrSql = "select AB_ATTRIBUTEID from AB_ATTRIBUTE"
@@ -52,7 +52,7 @@ AttributeUtil.getPossibleAttributes = function (pObjectType, pIncludeGroups, pFi
         }
     }
         
-    if (pFilteredAttributeIds != undefined && pFilteredAttributeIds.length > 0)
+    if (pFilteredAttributeIds)
     {
         var filteredIdsCondition = new SqlCondition();
         var filteredIdChildren = AttributeUtil.getAllChildren(pFilteredAttributeIds);