projects
/
platform
/
upstream
/
folks.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
358e7d8
)
tracker: Throw an error if personas are added before store is prepared.
author
Jeremy Whiting
<jpwhiting@kde.org>
Mon, 16 Jul 2012 21:30:16 +0000
(15:30 -0600)
committer
Jeremy Whiting
<jpwhiting@kde.org>
Mon, 16 Jul 2012 21:30:16 +0000
(15:30 -0600)
backends/tracker/lib/trf-persona-store.vala
patch
|
blob
|
history
diff --git
a/backends/tracker/lib/trf-persona-store.vala
b/backends/tracker/lib/trf-persona-store.vala
index
a2b37ed
..
17c949d
100644
(file)
--- a/
backends/tracker/lib/trf-persona-store.vala
+++ b/
backends/tracker/lib/trf-persona-store.vala
@@
-1853,13
+1853,20
@@
public class Trf.PersonaStore : Folks.PersonaStore
}
private async string? _insert_persona (string query, string persona_var)
+ throws PersonaStoreError
{
GLib.Variant variant;
string contact_urn = null;
+ if (!this.is_prepared)
+ {
+ throw new PersonaStoreError.CREATE_FAILED("Cannot insert persona before store is prepared");
+ }
+
try
{
debug ("_insert_persona: %s", query);
+ debug ("_connection is %p", this._connection);
variant = yield this._connection.update_blank_async (query);
VariantIter iter1, iter2, iter3;