mirror of
https://github.com/Icinga/icinga2.git
synced 2026-06-08 00:02:49 -04:00
parent
9080ca2867
commit
5db8dd7361
1 changed files with 3 additions and 0 deletions
|
|
@ -235,6 +235,9 @@ public:
|
|||
return GetPrototypeField(context, field, true, debugInfo);
|
||||
}
|
||||
|
||||
if (index < 0 || index >= arr->GetLength())
|
||||
BOOST_THROW_EXCEPTION(ScriptError("Array index '" + Convert::ToString(index) + "' is out of bounds.", debugInfo));
|
||||
|
||||
return arr->Get(index);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue