View Full Version : Getting NPE in TreeGridCellRenderer.getId() (TreeGridCellRenderer.java:55)

Abhishek Sharma
29 Aug 2011, 11:16 PM
I am using PagingTreeGridCellRenderer for ColumnConfigs in TreeGridView. And using this to set the view of my TreeGrid. Everything is working fine but when I open the tree widgets in grid with little larger number of rows and scroll up and down, some rows become blank (appear-disappear at times). Now clicking on any such blank space result in following error -

Unexpected Error Occurred java.lang.NullPointerException com.extjs.gxt.ui.client.widget.treegrid.TreeGridCellRenderer.getId(TreeGridCellRenderer.java:55) com.extjs.gxt.ui.client.widget.treegrid.TreeGridCellRenderer.render

And once this error comes, it keeps on coming just by moving the scroll up and down.

What I found so far is -

protected TreeNode findNode(M m) {
if (m == null || useKeyProvider == null) return null;
return nodes.get(useKeyProvider ? generateModelId(m) : cache.get(m));

cache.get(m) returns null and it gives a null pointer exception. Please help.

30 Aug 2011, 7:55 AM
This forum is for ExtJS 4, suggest you try the Ext GWT forum instead.