Hi all,
Can anybody point a new boy in the right direction ?
I am getting this when I load an svg file into an JSVGCanvas :-
java.lang.NullPointerException
at org.apache.batik.bridge.DocumentLoader.getLineNumber(Unknown Source)
at org.apache.batik.bridge.GVTBuilder.build(Unknown Source)
at org.apache.batik.swing.svg.GVTTreeBuilder.run(Unknown Source)
I know what the problem is - the GVTBuilder cannot find a JPEG file (because I purposefully removed it from the path).
What I want to know is what to do to trap this error and present a more meaningful error message to the user such as
"Build failed due to missing JPEG file : euro.jpg"
Same thing also happens if I load the file in Squiggle.
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
width="100"
height="100">
<image x="30" y="30" width="30px" height="30px"
preserveAspectRatio="xMinYMin meet"
xlink:href=""
xlink:type="simple"
xlink:show="replace"
xlink:actuate="onRequest" />
</svg>
Patrick Egan
[EMAIL PROTECTED]
_____________________________________________________________________
This e-mail has been scanned for viruses by MCI's Internet Managed Scanning Services - powered by MessageLabs. For further information visit http://www.mci.com