Ticket #51 (closed defect: fixed)

Opened 5 years ago

Last modified 4 years ago

strdf:transform: java.lang.NullPointerException when the first argument (geometry) is not bound

Reported by: charnik Owned by: stella
Priority: major Milestone: Strabon v3.3
Component: generaldb Version: all
Keywords: strdf:transform,transform,NULLPointerException,variable not bound Cc:


The following query, when evaluated, results to NULLPointerException, because the first argument to strdf:transform is not bound to any value. Such situations arise from typos.

PREFIX noa: <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX strdf: <http://strdf.di.uoa.gr/ontology#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>

SELECT ?h (strdf:transform(?unbound, <http://www.opengis.net/def/crs/EPSG/0/4326>) as ?geo)

?h rdf:type noa:Hotspot ;

noa:isDerivedFromSensor "MSG1_RSS"xsd:string ;
noa:hasAcquisitionTime "2012-08-19T17:30:00"^^xsd:dateTime ;
noa:hasGeometry ?hGeo .


Change History

comment:1 Changed 5 years ago by charnik

  • Component changed from endpoint to generaldb

comment:2 Changed 5 years ago by stella

  • Owner changed from pyravlos-team to stella
  • Status changed from new to assigned

comment:3 Changed 5 years ago by stella

This exception actually happens not only in strdf:transform, but in any spatial function in select which involves variables that do not exist in the where clause.

comment:4 Changed 5 years ago by stella

  • Status changed from assigned to closed
  • Resolution set to fixed

comment:5 Changed 4 years ago by charnik

  • Milestone set to Strabon v3.3
Note: See TracTickets for help on using tickets.