spullara/mustache.java — pull request #28 by mcheely (2012-04-24 00:47:35+00:00)
Title: Fix bug causing (Hash)Maps with explicitly set nulls to fail

ReflectionObjectHandler checked map value presence by comparing the result of map.get(name) to null. MapGuard checks for map.containsKey(name). If a value is set to null with map.put(name, null), the ReflectionObjectHandler test creates a MapGuard with contains = false, but when the guard is evaluated, it fails because map.containsKey(name) returns true.

This should fix it.