🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

AngelScript array indexing null pointer check

Started by
0 comments, last by WitchLord 8 years, 1 month 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];
Advertisement

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