Strabon

changeset 1339:b4ed3e06712c

#51 fixed. Checked the case where the result of strdf:distance is null.
Must add tests
author Stella Giannakopoulou <sgian@di.uoa.gr>
date Mon May 26 19:03:28 2014 +0300 (2014-05-26)
parents 135662fde67f
children c1cebf65ffe3
files generaldb/src/main/java/org/openrdf/sail/generaldb/iteration/GeneralDBBindingIteration.java
line diff
     1.1 --- a/generaldb/src/main/java/org/openrdf/sail/generaldb/iteration/GeneralDBBindingIteration.java	Mon May 26 17:48:04 2014 +0300
     1.2 +++ b/generaldb/src/main/java/org/openrdf/sail/generaldb/iteration/GeneralDBBindingIteration.java	Mon May 26 19:03:28 2014 +0300
     1.3 @@ -218,9 +218,13 @@
     1.4  	{
     1.5  		double potentialMetric;
     1.6  		//case of metrics
     1.7 -		potentialMetric = rs.getFloat(index + 1);
     1.8 +		if(rs.getArray(index+1) != null)
     1.9 +		{
    1.10 +			potentialMetric = rs.getFloat(index + 1);
    1.11  
    1.12 -		return vf.asRdbmsLiteral(vf.createLiteral(potentialMetric));
    1.13 +			return vf.asRdbmsLiteral(vf.createLiteral(potentialMetric));
    1.14 +		}
    1.15 +		return null;
    1.16  
    1.17  	}
    1.18