summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorTeemu Suo-Anttila <teemusa@vaadin.com>2016-01-12 17:29:44 +0200
committerTeemu Suo-Anttila <teemusa@vaadin.com>2016-01-12 17:29:44 +0200
commit1408272f7736ca1ac0e2114da9221543cb9e2a82 (patch)
tree1e8595c70d5c80eacc61706ebef6d7c930a02f9e /client
parenta214f33999849882693b56951ce2875d45a959d6 (diff)
downloadvaadin-framework-1408272f7736ca1ac0e2114da9221543cb9e2a82.tar.gz
vaadin-framework-1408272f7736ca1ac0e2114da9221543cb9e2a82.zip
Add clarifying comment to CustomDetailsGenerator
Change-Id: I9e6668b1fbc0a956bf34b48b75df59279005d097
Diffstat (limited to 'client')
-rw-r--r--client/src/com/vaadin/client/connectors/GridConnector.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/client/src/com/vaadin/client/connectors/GridConnector.java b/client/src/com/vaadin/client/connectors/GridConnector.java
index c6075d3bd4..90d9d71088 100644
--- a/client/src/com/vaadin/client/connectors/GridConnector.java
+++ b/client/src/com/vaadin/client/connectors/GridConnector.java
@@ -56,9 +56,9 @@ import com.vaadin.client.widget.grid.CellReference;
import com.vaadin.client.widget.grid.CellStyleGenerator;
import com.vaadin.client.widget.grid.EditorHandler;
import com.vaadin.client.widget.grid.EventCellReference;
+import com.vaadin.client.widget.grid.HeightAwareDetailsGenerator;
import com.vaadin.client.widget.grid.RowReference;
import com.vaadin.client.widget.grid.RowStyleGenerator;
-import com.vaadin.client.widget.grid.HeightAwareDetailsGenerator;
import com.vaadin.client.widget.grid.events.BodyClickHandler;
import com.vaadin.client.widget.grid.events.BodyDoubleClickHandler;
import com.vaadin.client.widget.grid.events.ColumnReorderEvent;
@@ -508,6 +508,8 @@ public class GridConnector extends AbstractHasComponentsConnector implements
@Override
public double getDetailsHeight(int rowIndex) {
+ // Case of null is handled in the getDetails method and this method
+ // will not called if it returns null.
String id = getId(rowIndex);
ComponentConnector componentConnector = idToDetailsMap.get(id);