[redland-dev] [Redland Ruby Binding 0000292]: Method Redland::Resource.type? always return true

Mantis Bug Tracker mantis-bug-sender at librdf.org
Tue Jan 6 21:32:48 CET 2009


The following issue has been SUBMITTED. 
====================================================================== 
http://bugs.librdf.org/mantis/view.php?id=292 
====================================================================== 
Reported By:                dulanov
Assigned To:                
====================================================================== 
Project:                    Redland Ruby Binding
Issue ID:                   292
Category:                   
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2009-01-06 20:32
Last Modified:              2009-01-06 20:32
====================================================================== 
Summary:                    Method Redland::Resource.type? always return true
Description: 
def type?(type)
  self.model.find(self,TYPE,type) != nil
end

self.model.find withoud a block returns at least [], and [] != nil =>
method always returns true

should be, for an example

def type?(type)
  self.model.find(self,TYPE,type).size != 0
end
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-01-06 20:32 dulanov        New Issue                                    
======================================================================



More information about the redland-dev mailing list