diff --git a/lib/kmxgit_web/controllers/user_controller.ex b/lib/kmxgit_web/controllers/user_controller.ex
index d09d8d6..7d81f90 100644
--- a/lib/kmxgit_web/controllers/user_controller.ex
+++ b/lib/kmxgit_web/controllers/user_controller.ex
@@ -103,7 +103,7 @@ defmodule KmxgitWeb.UserController do
if user do
conn
|> put_resp_content_type("text/plain")
- |> resp(200, user.ssh_keys)
+ |> resp(200, user.ssh_keys || "")
else
not_found(conn)
end