LinkedList Breaks With Null Objects [1.30]

BlitzMax Forums/BlitzMax Bug Reports/LinkedList Breaks With Null Objects [1.30]

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

It's been mentioned before, but I can't find it in the bugs forum, and it's still happening with 1.30 so I guess it hasn't been fixed.

Global List:TList=New TList

List.AddFirst(Null)
List.AddFirst(Null)
List.AddFirst(Null)

Print List.Count()

For Local O:Object=EachIn List
   Print "Here is an object we have found!"
Next



Now you have a list with no objects, no ability to remove objects ( because they're not there ) and the count is always going to be wrong. I really don't mind if it ignores null objects completely, throws an error in debug, crashes spectacularly or whatever, but it really isn't good to just silently ignore the null object but increase the count anyway.