My favorites | Sign in
Project Home Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 8: for iteration over null array should bring up an error message
1 person starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  ----
Closed:  May 2010


 
Reported by aboutwh...@googlemail.com, Jan 30, 2010
What steps will reproduce the problem?
public static function getFiles () : Array<String> 
{
   return null;
}
    
public static function main ():Void 
{
   var t = Timer.stamp();
   var f = getFiles();
   for (i in f) {
       trace(i);
   }   
} 

the application freezes without error message on windows 7. It would be
great to get an exception. If enhanced error-checking, would lead to slower
code, maybe it's possible to include null checks in Debug-Mode (-debug).

May 6, 2010
Project Member #1 gameh...@gmail.com
Fixed in hxcpp svn
use the "-D debug" haxe compile flags to get a better error message.
Status: Fixed

Powered by Google Project Hosting