2
0
Nicolas Cannasse 19 жил өмнө
parent
commit
ee2f696d98

+ 2 - 0
std/neko/NekoArray__.hx

@@ -117,6 +117,8 @@ class NekoArray__<T> implements Array<T> {
 
 	public function pop() {
 		untyped {
+			if( this.length == 0 )
+				return null;
 			this.length -= 1;
 			var x = this.__a[this.length];
 			this.__a[this.length] = null;