git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194084
13f79535-47bb-0310-9956-
ffa450edef68
public SVGSVGElement getRootElement()
{
- return (SVGSVGElement)childs.elementAt(0);
+ if(childs.size() > 0)
+ return (SVGSVGElement)childs.elementAt(0);
+ return null;
}
public Element getElementById(String elementId)
*/
public void removeID(IDReferences idReferences)
{
+ if(((FObj)this).properties.get("id") == null)
+ return;
idReferences.removeID( ((FObj)this).properties.get("id").getString());
int numChildren = this.children.size();
for (int i = 0; i < numChildren; i++)