Minor tweak related to ACE-2952 to be certain of no NPEs.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@85896 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Neil McErlean
2014-09-29 11:22:28 +00:00
parent aad2fbcaba
commit 5e0e2fd200

View File

@@ -643,7 +643,7 @@ public class SOLRTrackingComponentImpl implements SOLRTrackingComponent
});
}
final boolean nodeIdEqualsLastCached = (nodeId == null && lastCached == null) ||
nodeId.equals(lastCached);
(nodeId != null && nodeId.equals(lastCached));
if (nodeIdEqualsLastCached && !toVisit.isEmpty())
{
nodeDAO.cacheNodesById(toVisit);