Author: aharui
Date: Wed Nov 21 21:56:32 2012
New Revision: 1412324

URL: http://svn.apache.org/viewvc?rev=1412324&view=rev
Log:
A Mac file system alias that is broken will cause the File object to have an 
invalid date and results in an exception

Modified:
    
incubator/flex/sdk/branches/develop/frameworks/projects/airframework/src/mx/controls/FileSystemDataGrid.as

Modified: 
incubator/flex/sdk/branches/develop/frameworks/projects/airframework/src/mx/controls/FileSystemDataGrid.as
URL: 
http://svn.apache.org/viewvc/incubator/flex/sdk/branches/develop/frameworks/projects/airframework/src/mx/controls/FileSystemDataGrid.as?rev=1412324&r1=1412323&r2=1412324&view=diff
==============================================================================
--- 
incubator/flex/sdk/branches/develop/frameworks/projects/airframework/src/mx/controls/FileSystemDataGrid.as
 (original)
+++ 
incubator/flex/sdk/branches/develop/frameworks/projects/airframework/src/mx/controls/FileSystemDataGrid.as
 Wed Nov 21 21:56:32 2012
@@ -1605,7 +1605,17 @@ public class FileSystemDataGrid extends 
         if (!item.exists) // item may have been deleted
             return "";
 
-        return dateFormatter.format(item.creationDate);
+               var s:String;
+               try 
+               {
+               s = dateFormatter.format(item.creationDate);
+               } 
+               catch (e:Error)
+               {
+                       // a bad alias on mac will not have a valid creation 
date
+                       s = "";
+               }
+               return s;
     }
 
     /**
@@ -1617,7 +1627,17 @@ public class FileSystemDataGrid extends 
         if (!item.exists) // item may have been deleted
             return "";
 
-        return dateFormatter.format(item.modificationDate);
+               var s:String;
+               try
+               {
+               s = dateFormatter.format(item.modificationDate);
+               } 
+               catch (e:Error)
+               {
+                       // a bad alias on mac will not have a valid mod date
+                       s = "";
+               }
+               return s;
     }
 
     /**


Reply via email to