# HG changeset patch # User Frank Benoit # Date 1218467921 -7200 # Node ID c0304616ea2313a03ffc73bcbabf282df7552804 # Parent 3b2353d77f37ff9bd9012228e7dcc994b7b650a2 Fix: tango assertion error, see tango ticket 1237 diff -r 3b2353d77f37 -r c0304616ea23 dwtx/dwtxhelper/Collection.d --- a/dwtx/dwtxhelper/Collection.d Mon Aug 11 11:14:42 2008 +0200 +++ b/dwtx/dwtxhelper/Collection.d Mon Aug 11 17:18:41 2008 +0200 @@ -1712,9 +1712,11 @@ return null; } Object[] toArray(){ + if( list.size() is 0 ) return null; // workaround tango ticket 1237 return list.toArray(); } Object[] toArray(Object[] a){ + if( list.size() is 0 ) return a[0 .. 0]; // workaround tango ticket 1237 return list.toArray( a ); } String toString(){