diff --git a/dss-framework/dss-framework-workspace-server/src/main/java/com/webank/wedatasphere/dss/framework/workspace/service/impl/DSSWorkspaceServiceImpl.java b/dss-framework/dss-framework-workspace-server/src/main/java/com/webank/wedatasphere/dss/framework/workspace/service/impl/DSSWorkspaceServiceImpl.java index da28463258..6d1ebd359d 100644 --- a/dss-framework/dss-framework-workspace-server/src/main/java/com/webank/wedatasphere/dss/framework/workspace/service/impl/DSSWorkspaceServiceImpl.java +++ b/dss-framework/dss-framework-workspace-server/src/main/java/com/webank/wedatasphere/dss/framework/workspace/service/impl/DSSWorkspaceServiceImpl.java @@ -272,7 +272,7 @@ public DSSWorkspaceHomePageVO getWorkspaceHomePage(String userName, String modul String homepageUrl = "/workspaceHome?workspaceId=" + workspaceIds.get(0); DSSWorkspace defaultWorkspace = dssWorkspaces.stream() .filter(workspcae -> workspcae.getName().equalsIgnoreCase(ApplicationConf.HOMEPAGE_DEFAULT_WORKSPACE.getValue())).findAny().orElse(null); - if(ObjectUtil.isEmpty(defaultWorkspace)){ + if(ObjectUtil.isNotEmpty(defaultWorkspace)){ homepageUrl = "/workspaceHome?workspaceId=" + defaultWorkspace.getId(); }