xmlgraphics-batik-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 44703] New: Potential null pointer dereference in apps. svgbrowser.FindDialog.getNext()
Date Fri, 28 Mar 2008 22:44:29 GMT
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: batik-dev@xmlgraphics.apache.org
        ReportedBy: david_dillard@symantec.com


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: batik-dev-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-dev-help@xmlgraphics.apache.org


Mime
View raw message