spullara/mustache.java — pull request #29 by mcheely (2012-04-25 00:06:34+00:00)
Title: Fix problems with dot notation misses on last element in path

Got another one. This time it's due to dot-notation misses on the last element in the path. ReflectionObjectHandler.findWrapper was returning null on name lookup misses, but the find method didn't set it's current wrapper to null when that happened, it just tried to check the next object in the scope chain. If there was no next object, find's for loop ended, and it would return the bogus wrapper for the next-to-last object in the chain, potentially causing some pretty funky behavior.