https://issues.apache.org/bugzilla/show_bug.cgi?id=44703

           Summary: Potential null pointer dereference in
                    apps.svgbrowser.FindDialog.getNext()
           Product: Batik
           Version: 1.7
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: SVG Viewer
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


org.apache.batik.apps.svgbrowser.FindDialog.getNext() starts with the
following:

    protected GraphicsNode getNext(String text) {
        if (walker == null && gvtRoot != null) {
            walker = new GVTTreeWalker(gvtRoot);
        }
        GraphicsNode gn = walker.getCurrentGraphicsNode();

When the method is entered if walker is null and gvtRoot is null then a
GVTTreeWalker object will not be allocated and the an null pointer exception
will be thrown.


This was detected by FindBugs.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to