Added null-check to GetId
Not the best fallback return value, but meh.
This commit is contained in:
parent
5483073347
commit
837b2f8c8d
1 changed files with 3 additions and 0 deletions
|
@ -257,6 +257,9 @@ namespace arookas {
|
|||
return null;
|
||||
}
|
||||
static __sunConstants GetId(Node node) {
|
||||
if (node == null) {
|
||||
return (__sunConstants)(-1);
|
||||
}
|
||||
return (__sunConstants)node.Id;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue