From: Alessio F. (JIRA) <ji...@co...> - 2010-07-26 11:47:38
|
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 |