Commit b17e6685 authored by sbade's avatar sbade

added null check condition in performSingleClick method().


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@100232 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 0416b184
...@@ -549,21 +549,18 @@ public class CustomGrid extends AbstractDataGrid<DataGridTableRowModel> ...@@ -549,21 +549,18 @@ public class CustomGrid extends AbstractDataGrid<DataGridTableRowModel>
for (int i = 0 ; i<tr.getChildCount();i++) for (int i = 0 ; i<tr.getChildCount();i++)
{ {
Node tdCell = tr.getChild(i).getFirstChild().getFirstChild(); Node tdCell = tr.getChild(i).getFirstChild().getFirstChild();
Element spanElemt = tdCell.cast(); if(tdCell!=null)
//Window.alert("spanElemt :"+spanElemt.getInnerHTML()); {
String colName= spanElemt.getElementsByTagName("div").getItem(0).getAttribute("colname"); Element spanElemt = tdCell.cast();
//Window.alert("colName :"+colName); String colName= spanElemt.getElementsByTagName("div").getItem(0).getAttribute("colname");
String colval= spanElemt.getElementsByTagName("div").getItem(0).getAttribute("title"); String colval= spanElemt.getElementsByTagName("div").getItem(0).getAttribute("title");
parameterListString = parameterListString + "&" + colName.trim() + "=" + colval.trim(); parameterListString = parameterListString + "&" + colName.trim() + "=" + colval.trim();
}
} }
String splitArr[] = metadataName.split("@"); String splitArr[] = metadataName.split("@");
metadataName = splitArr[0]; metadataName = splitArr[0];
linkFormat = splitArr[1]; linkFormat = splitArr[1];
dispFilterStatus = splitArr[2]; dispFilterStatus = splitArr[2];
//Window.alert("propertyStr :"+propertyStr);
//Window.alert("urlStr :"+urlStr);
//Window.alert("parameterListString :"+parameterListString);
//Window.alert("dispFilterStatus :"+dispFilterStatus);
if(linkFormat.trim().length()>0 && linkFormat.trim().equalsIgnoreCase("F")) if(linkFormat.trim().length()>0 && linkFormat.trim().equalsIgnoreCase("F"))
{ {
buildGridFrame(metadataName,cellValue, propertyStr,urlStr,parameterListString,dispFilterStatus); buildGridFrame(metadataName,cellValue, propertyStr,urlStr,parameterListString,dispFilterStatus);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment