From 8671fb6060fd5e28ef6ec6674dac14ada4a79f0f Mon Sep 17 00:00:00 2001 From: Tpt Date: Wed, 28 Apr 2021 19:06:15 +0200 Subject: [PATCH] Fixes an out of bound panic in SPARQL evaluation --- lib/src/sparql/eval.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/sparql/eval.rs b/lib/src/sparql/eval.rs index ec27237b..139bef72 100644 --- a/lib/src/sparql/eval.rs +++ b/lib/src/sparql/eval.rs @@ -2682,7 +2682,7 @@ fn get_triple_template_value( TripleTemplateValue::Variable(v) => tuple.get(*v), TripleTemplateValue::BlankNode(id) => { if *id >= bnodes.len() { - bnodes.resize_with(*id, new_bnode) + bnodes.resize_with(*id + 1, new_bnode) } Some(bnodes[*id]) }