[redland] Re: Perl method Stream->end is corrupt

smeinert at uos.de smeinert at uos.de
Tue Dec 19 14:15:10 GMT 2000


> So if you have
> 
>   $stream=$model->find_statements($some_statement)
>   # aka $stream=RDF::Model::find_statements($model,$some_statement)
> 
> do you mean $stream returns a defined but empty RDF::Stream object
> and $stream->end crashes or do you mean $stream is undef and
> $stream->end crashes?
> 
It returns a defined, but empty Stream and $stream->end crashes.

An Example:

$stream=$self->{graph}->{model}->find_statements($arc->{statement});
  while (!$stream->end) {
    	$next=$stream->next;
  }

if there is no matching statement $stream is defined, but $stream->end
crashes.
Stefan









More information about the redland-dev mailing list