Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
narnolddd committed Mar 7, 2023
2 parents 1153aaf + c917736 commit 9be50cd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion feta/network/NodeTypes.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@ public static void setNodeType(int nodeNo, String nodeType)
/** Return numbers of all nodes with a given type*/
public static HashSet<Integer> getNodesOfType (String type)
{
return new HashSet<Integer>(nt_.nodesByType_.get(type));
HashSet<Integer> nodes= nt_.nodesByType_.get(type);
if (nodes == null)
return null;
return new HashSet<Integer>(nodes);
}

/** Get current list of types */
Expand Down

0 comments on commit 9be50cd

Please sign in to comment.