Checking for NULL in getattributeValue in Groovy EPBCS
Summary:
we are trying to check if attribute is attached with dimension and if attribute is tagged then users should get a custom message and script execution will stop.
If no attribute is attached to member for that attribute dimension then nothing should be done. It works fine if attribute is attached and custom message is displayed. However if no attribute is attached then it throws an error for String MemberAtt = ModAttr.toString() in the code. If there is no attribute attached it should just continue without throwing an error. It will be great if some guidance can be provided. How to check for NULL since getattributevalue returns NULL if no attribute is found.
Tagged:
0