From fbb1b2d607fda8cc045a7f4146f3f6ccae7a4d35 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Thu, 8 Oct 2020 08:19:59 +0200 Subject: [PATCH] Handle case when setting value is nil Signed-off-by: Thomas Citharel --- lib/mobilizon/admin/admin.ex | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/mobilizon/admin/admin.ex b/lib/mobilizon/admin/admin.ex index a07f2b1f..66bcc6c5 100644 --- a/lib/mobilizon/admin/admin.ex +++ b/lib/mobilizon/admin/admin.ex @@ -94,6 +94,8 @@ defmodule Mobilizon.Admin do end end + def get_setting_value(nil), do: nil + def get_setting_value(value) do case Jason.decode(value) do {:ok, val} ->