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:
@@ -316,7 +316,8 @@ public abstract class PeerManager
|
|||||||
*/
|
*/
|
||||||
public <T> T lookupNodeDatum (Function<NodeObject,T> op)
|
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 value;
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
|
|||||||
Reference in New Issue
Block a user