Bugfix: return to correct functioning behavior, with added

functional fun, which is what mdb probably intended.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5873 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Ray Greenwell
2009-07-14 20:36:14 +00:00
parent ef600104e4
commit b4599943c8
@@ -316,7 +316,8 @@ public abstract class PeerManager
*/
public <T> T lookupNodeDatum (Function<NodeObject,T> op)
{
for (T value : Iterables.transform(getNodeObjects(), op)) {
for (T value :
Iterables.filter(Iterables.transform(getNodeObjects(), op), Predicates.notNull())) {
return value;
}
return null;