summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/json/json_helper.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/json/json_helper.c b/src/json/json_helper.c
index e8c6d4cb..c3788f86 100644
--- a/src/json/json_helper.c
+++ b/src/json/json_helper.c
@@ -419,7 +419,8 @@ parse_i18n_string (void *cls,
val = json_object_get (root,
ctx->field);
- if (NULL != i18n)
+ if ( (NULL != i18n) &&
+ (NULL != ctx->lp) )
{
double best = 0.0;
json_t *pos;