路由构建时 SysMenu.getParentId() 可能返回 NULL(数据库 parent_id 为 NULL), 在 buildMenus/getRouterPath/getComponent/isMenuFrame/isParentView/getChildList 中直接调用 .intValue()/.longValue() 触发自动拆箱 NPE,导致前端路由加载失败。
路由构建时 SysMenu.getParentId() 可能返回 NULL(数据库 parent_id 为 NULL), 在 buildMenus/getRouterPath/getComponent/isMenuFrame/isParentView/getChildList 中直接调用 .intValue()/.longValue() 触发自动拆箱 NPE,导致前端路由加载失败。