mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-26 23:24:09 +02:00
parent
9080ca2867
commit
5db8dd7361
@ -235,6 +235,9 @@ public:
|
|||||||
return GetPrototypeField(context, field, true, debugInfo);
|
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);
|
return arr->Get(index);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user