From e0dac738739f4cc5e7a507ed0bbef60230dd6f40 Mon Sep 17 00:00:00 2001 From: Paulo Gustavo Veiga Date: Mon, 28 Feb 2022 21:12:28 -0800 Subject: [PATCH] Fix NPE on null user. --- .../src/main/java/com/wisemapping/rest/MindmapController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wise-webapp/src/main/java/com/wisemapping/rest/MindmapController.java b/wise-webapp/src/main/java/com/wisemapping/rest/MindmapController.java index c87a567d..d8d8222d 100644 --- a/wise-webapp/src/main/java/com/wisemapping/rest/MindmapController.java +++ b/wise-webapp/src/main/java/com/wisemapping/rest/MindmapController.java @@ -542,7 +542,7 @@ public class MindmapController extends BaseController { mindmap.setXmlStr(mapXml); // Add new mindmap ... - final User user = Utils.getUser(); + final User user = Utils.getUser(true); mindmapService.addMindmap(mindmap, user); // Return the new created map ...