We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
commit id:fa5abc58a55e3971ff083a5496a0006b1cb51ae0
删除模型时没有删除s2_model_rela表中模型的关联关系,导致指标探索时出现空指针异常
private static void dfs(ModelSchemaResp model, Map<Long, ModelSchemaResp> modelMap, Set<Long> visited, Set<Long> modelCluster) { visited.add(model.getId()); // model is null modelCluster.add(model.getId()); for (Long neighborId : model.getModelClusterSet()) { if (!visited.contains(neighborId)) { dfs(modelMap.get(neighborId), modelMap, visited, modelCluster); } } }
应该还有其他地方也会有类似的异常
删除模型时应同步删除s2_model_rela表中模型的关联关系,并且应该添加判空处理
private static void dfs(ModelSchemaResp model, Map<Long, ModelSchemaResp> modelMap, Set<Long> visited, Set<Long> modelCluster) { visited.add(model.getId()); modelCluster.add(model.getId()); for (Long neighborId : model.getModelClusterSet()) { if (!visited.contains(neighborId) && modelMap.containsKey(neighborId)) { dfs(modelMap.get(neighborId), modelMap, visited, modelCluster); } } }
No response
The text was updated successfully, but these errors were encountered:
有兴趣提交一个PR吗
Sorry, something went wrong.
No branches or pull requests
Search before asking
Version
commit id:fa5abc58a55e3971ff083a5496a0006b1cb51ae0
What's Wrong?
删除模型时没有删除s2_model_rela表中模型的关联关系,导致指标探索时出现空指针异常
应该还有其他地方也会有类似的异常
What You Expected?
删除模型时应同步删除s2_model_rela表中模型的关联关系,并且应该添加判空处理
How to Reproduce?
No response
Anything Else?
No response
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: