Advertisement

AngelScript array indexing null pointer check

Started by May 23, 2016 12:49 PM
0 comments, last by WitchLord 8 years, 5 months ago

I use a slightly older version of the library (2.30.2), so this might have been changed, but in this version there is no null check when using the indexing operator,

So this throws a null pointer exception:


array<int>@ arr = null;
arr.length();

But this does not:


array<int>@ arr = null;
arr[0];

This has already been fixed in the latest 2.31.1 WIP version that you can from the SVN repository.

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

This topic is closed to new replies.

Advertisement