Closed AlvaroVega closed 5 years ago
Instead of return attrs.get(0).getName();
check attrs array:
if (attrs && attrs.get(0)) {
return attrs.get(0).getName(); // the CE has been filtered for having just one attribute
} else {
return '';
}
Log