Postgis insert or modify feature operations throw a NULL pointer exception if a
geometry is null
------------------------------------------------------------------------------------------------
Key: GEOT-1118
URL: http://jira.codehaus.org/browse/GEOT-1118
Project: GeoTools
Issue Type: Bug
Components: data postgis
Affects Versions: 2.2.2
Reporter: Jesse Eichar
Assigned To: Justin Deoliveira
Fix For: 2.2.3
java.lang.NullPointerException
at
org.geotools.data.postgis.attributeio.WKBEncoder.encodeWKBGeometry(WKBEncoder.java:146)
at
org.geotools.data.postgis.attributeio.WKBEncoder.encodeGeometry(WKBEncoder.java:108)
at
org.geotools.data.postgis.attributeio.WKBEncoder.encodeGeometryHex(WKBEncoder.java:187)
at
org.geotools.data.postgis.PostgisFeatureWriter.getGeometryInsertText(PostgisFeatureWriter.java:76)
at
org.geotools.data.jdbc.JDBCTextFeatureWriter.makeInsertSql(JDBCTextFeatureWriter.java:198)
at
org.geotools.data.jdbc.JDBCTextFeatureWriter.doInsert(JDBCTextFeatureWriter.java:107)
at
org.geotools.data.jdbc.JDBCFeatureWriter.write(JDBCFeatureWriter.java:220)
at
org.geotools.data.InProcessLockingManager$1.write(InProcessLockingManager.java:331)
at
org.geotools.data.jdbc.JDBCFeatureStore.addFeatures(JDBCFeatureStore.java:400)
at
net.refractions.udig.project.internal.impl.UDIGFeatureStore.addFeatures(UDIGFeatureStore.java:160)
at
net.refractions.udig.project.internal.commands.edit.AddFeatureCommand.run(AddFeatureCommand.java:88)
at
net.refractions.udig.tools.edit.commands.CreateAndSetNewFeature.run(CreateAndSetNewFeature.java:56)
at
net.refractions.udig.project.command.UndoableComposite.execute(UndoableComposite.java:81)
at
net.refractions.udig.tools.edit.BehaviourCommand.execute(BehaviourCommand.java:65)
at
net.refractions.udig.project.command.CommandManager$Executor.execute(CommandManager.java:393)
at
net.refractions.udig.project.command.CommandManager$Executor.run(CommandManager.java:324)
at
net.refractions.udig.project.command.CommandManager$Executor.run(CommandManager.java:310)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
--
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
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel