From 6df1b0e6524bfd402d8ae3fdfc8458d38f5fc9c0 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 a07f2b1fa..66bcc6c5b 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} ->