LiteShape2 NullPointerException
-------------------------------

                 Key: GEOT-3211
                 URL: http://jira.codehaus.org/browse/GEOT-3211
             Project: GeoTools
          Issue Type: Bug
          Components: core geometry
    Affects Versions: 2.6.5, 2.7-M3
            Reporter: Alessio Fabiani
            Assignee: Jody Garnett


LiteShape2 around line 149 reports the following code:

                this.mathTransform = mathTransform;
                if (decimator != null) {
                        
decimator.decimateTransformGeneralize(this.geometry,this.mathTransform);
                        this.geometry.geometryChanged();
                } else {
                        // if we have a transform a decimation span can be 
detected, so try to decimate anyways
                        if (mathTransform != null && 
!mathTransform.isIdentity() && generalize)
                                new 
Decimator(mathTransform.inverse()).decimate(this.geometry);
                            this.geometry.geometryChanged();
                        if (geometry != null) {
                                transformGeometry(geometry);
                                this.geometry.geometryChanged();
                        }
                }
                this.generalize = false;
        }

which return NPE in case geometry is null.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share 
of $1 Million in cash or HP Products. Visit us here for more details:
http://ad.doubleclick.net/clk;226879339;13503038;l?
http://clk.atdmt.com/CRS/go/247765532/direct/01/
_______________________________________________
Geotools-devel mailing list
Geotools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to