Prevent infinite loop when HasMap is empty and values() method is valled

This commit is contained in:
Tommy Hallgren
2012-11-18 15:34:27 +01:00
parent 5117bf8118
commit 31480385c1
+1 -1
View File
@@ -300,7 +300,7 @@
var values = this._values();
var i = values.length
var result = Kotlin.$new(Kotlin.ArrayList)();
while (--i) {
while (i--) {
result.add(values[i]);
}
return result;