js check if element is not null code example
Example: check if element is null
if (element != null && element.getAdditionalValue() != null){
return element.getAdditionalValue();
}
if (element != null && element.getAdditionalValue() != null){
return element.getAdditionalValue();
}