@@ -126,6 +126,7 @@ abstract ArrayProxy<T>(ArrayProxyData<T>) {
}
@:from static inline function fromArray<T>( a : Array<T> ) {
+ if( a == null ) return null;
return new ArrayProxy(new ArrayProxyData(a));
@@ -55,6 +55,7 @@ abstract VectorProxy<T>(VectorProxyData<T>) {
@:from static inline function fromVector<T>( a : haxe.ds.Vector<T> ) {
return new VectorProxy(new VectorProxyData(a));