Fix NPE on null user.

This commit is contained in:
Paulo Gustavo Veiga 2022-02-28 21:12:28 -08:00
parent a8e2c74a21
commit e0dac73873

View File

@ -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 ...