Private
Public Access
Added a safe catch, just in case
This commit is contained in:
1 parent
e6722273a5
commit
7035a3e06e
1 file changed
+1
@@ -198,6 +198,7 @@ namespace Advanced_Software_Engineering {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public bool CheckVariableExists(string name) {
|
public bool CheckVariableExists(string name) {
|
||||||
|
if (name == null) return false;
|
||||||
return variables.ContainsKey(name);
|
return variables.ContainsKey(name);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user