lib: Map:[] aborts if key is not found
[nit.git] / lib / standard / abstract_collection.nit
index cea7a6c..0f88388 100644 (file)
@@ -381,7 +381,7 @@ special Map[K, E]
        do
                var c = couple_at(key)
                if c == null then
-                       return null
+                       abort
                else
                        return c.second
                end