Skip to content
This repository has been archived by the owner on Mar 10, 2019. It is now read-only.

Commit

Permalink
ext-db: fix crash when store request processing fails
Browse files Browse the repository at this point in the history
  • Loading branch information
gkrithi8 authored and Jonathan Matthew committed Nov 27, 2017
1 parent 7aec349 commit 5d18adb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion metadata/rb-ext-db.c
Original file line number Diff line number Diff line change
Expand Up @@ -954,7 +954,11 @@ do_store_request (GSimpleAsyncResult *result, GObject *object, GCancellable *can
*/
g_signal_emit (store, signals[STORE], 0, req->value, &req->data);

rb_debug ("stored value into encoded data of type %s", G_VALUE_TYPE_NAME (req->data));
if (req->data != NULL) {
rb_debug ("stored value into encoded data of type %s", G_VALUE_TYPE_NAME (req->data));
} else {
rb_debug ("failed to store value");
}
} else {
/* indicates we actually didn't get anything, as opposed to communication errors etc.
* providers just shouldn't call rb_ext_db_store_* in that case.
Expand Down

0 comments on commit 5d18adb

Please sign in to comment.