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;
|
return null;
|
||||||
}
|
}
|
||||||
static __sunConstants GetId(Node node) {
|
static __sunConstants GetId(Node node) {
|
||||||
|
if (node == null) {
|
||||||
|
return (__sunConstants)(-1);
|
||||||
|
}
|
||||||
return (__sunConstants)node.Id;
|
return (__sunConstants)node.Id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue