mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-11 03:58:14 +00:00
(fix)(headless)Fix occasional NPE in SqlBuilder.
This commit is contained in:
@@ -91,6 +91,9 @@ public class SqlBuilder {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (selectedGraphPath == null) {
|
||||||
|
return dataModels;
|
||||||
|
}
|
||||||
Set<String> modelNames = Sets.newHashSet();
|
Set<String> modelNames = Sets.newHashSet();
|
||||||
for (DefaultEdge edge : selectedGraphPath.getEdgeList()) {
|
for (DefaultEdge edge : selectedGraphPath.getEdgeList()) {
|
||||||
modelNames.add(selectedGraphPath.getGraph().getEdgeSource(edge));
|
modelNames.add(selectedGraphPath.getGraph().getEdgeSource(edge));
|
||||||
|
|||||||
Reference in New Issue
Block a user