[tracker/domain-specific-indexes] squash
- From: Philip Van Hoof <pvanhoof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/domain-specific-indexes] squash
- Date: Tue, 6 Jul 2010 10:21:07 +0000 (UTC)
commit e94aef88b8bd9a5a3e314a9c808ae7bc6e0a4059
Author: Philip Van Hoof <philip codeminded be>
Date: Tue Jul 6 12:19:29 2010 +0200
squash
src/libtracker-data/tracker-sparql-pattern.vala | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
---
diff --git a/src/libtracker-data/tracker-sparql-pattern.vala b/src/libtracker-data/tracker-sparql-pattern.vala
index 60d414c..df7cf33 100644
--- a/src/libtracker-data/tracker-sparql-pattern.vala
+++ b/src/libtracker-data/tracker-sparql-pattern.vala
@@ -1223,11 +1223,13 @@ class Tracker.Sparql.Pattern : Object {
Variable v = context.get_variable (current_subject);
VariableBindingList list = triple_context.var_bindings.lookup (v);
- foreach (Class cl in prop.get_domain_indexes ()) {
- foreach (VariableBinding b in list.list) {
- if (b.type != null && b.type == cl) {
- db_table = cl.name;
- break;
+ if (list != null && list.list != null) {
+ foreach (Class cl in prop.get_domain_indexes ()) {
+ foreach (VariableBinding b in list.list) {
+ if (b.type == cl) {
+ db_table = cl.name;
+ break;
+ }
}
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]