Browse Source

Node version sometimes empty in _cat/nodes
closes #5480

Shay Banon 11 years ago
parent
commit
743dc19acb

+ 1 - 1
src/main/java/org/elasticsearch/rest/action/cat/RestNodesAction.java

@@ -201,7 +201,7 @@ public class RestNodesAction extends AbstractCatAction {
                 table.addCell("-");
             }
 
-            table.addCell(info == null ? null : info.getVersion().number());
+            table.addCell(node.getVersion().number());
             table.addCell(info == null ? null : info.getBuild().hashShort());
             table.addCell(info == null ? null : info.getJvm().version());
             table.addCell(stats == null ? null : stats.getFs() == null ? null : stats.getFs().total().getAvailable());