Thanks Dave, added as defect #146, and fixed in code as follows:
/**
* Returns the first element this effect is applied to, unless this
effect
* is added to an {@link org.adamtacy.client.ui.NEffectPanel}, in
which case
* that panel's Element is returned.
* See defect #146 to ensure null is returned if no effect element
set yet.
*/
public Element getEffectElement() {
Element toReturn = null;
if (!effectElements.isEmpty())effectElements.get(0);
if (thePanel != null)
toReturn = thePanel.getElement();
return toReturn;
}
//Adam