Good day.
I have a function in my java code that adjusts the viewbox attribute of my SVG document. This function changes the 3rd parameter of the viewbox attribute and the width of the SVG file:
setWidth( Integer x )
{
root.setAttribute("viewBox", "0,0," + x.toString() + ",0");
root.setAttribute("width", x.toString());
}
I noticed that when I increase the x, the viewbox and the width increases accordingly. But when I decrease my x attribute I get a null pointer assignment error, do you know why I get such an error?
Thanks
Philip Zuniga
