Skip to content

Commit

Permalink
Use lastAdded if add* is passed [null] or null
Browse files Browse the repository at this point in the history
  • Loading branch information
rnett committed Mar 30, 2019
1 parent faaf215 commit e64184d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -967,7 +967,7 @@ public GraphBuilder setOutputs(String... outputNames) {
*/
public GraphBuilder addVertex(String vertexName, GraphVertex vertex, String... vertexInputs) {

if(vertexInputs.length == 0){
if(vertexInputs == null || (vertexInputs.length > 0 && vertexInputs[0] == null)){
if(lastAdded != null) {
vertexInputs = new String[]{lastAdded};
}
Expand Down

0 comments on commit e64184d

Please sign in to comment.