prevent NPE

This commit is contained in:
Athou
2014-08-12 16:05:57 +02:00
parent fd6701079e
commit 7a21e9816c

View File

@@ -39,7 +39,8 @@ public class CustomCssServlet extends HttpServlet {
return userSettingsDAO.findByUser(user); return userSettingsDAO.findByUser(user);
} }
}.run(); }.run();
if (settings == null) {
if (settings == null || settings.getCustomCss() == null) {
return; return;
} }