Commit b4ef1351 authored by cpatil's avatar cpatil

added condition for remove exception


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@95110 ce508802-f39f-4f6c-b175-0d175dae99d5
parent e4dcd130
...@@ -239,18 +239,7 @@ public class RunMRPPrc extends ProcessEJB implements RunMRPPrcLocal, RunMRPPrcRe ...@@ -239,18 +239,7 @@ public class RunMRPPrc extends ProcessEJB implements RunMRPPrcLocal, RunMRPPrcRe
System.out.println("win name is ==>"+wnName); System.out.println("win name is ==>"+wnName);
NodeList parentNodeList1 = dom1.getElementsByTagName("Detail3");
Node parentNode1 = parentNodeList1.item(0);
try
{
windowName1 = this.getWinName(parentNode1);
}
catch (Exception e1)
{
e1.printStackTrace();
}
this.wnName1=windowName1;
System.out.println("windowName is ==>"+windowName);
// System.out.println("Initial Size of Item Has Map :" + // System.out.println("Initial Size of Item Has Map :" +
// itemHashMap.size()); // itemHashMap.size());
//if("w_runmrp_det".equalsIgnoreCase(windowName)) //if("w_runmrp_det".equalsIgnoreCase(windowName))
...@@ -262,6 +251,28 @@ public class RunMRPPrc extends ProcessEJB implements RunMRPPrcLocal, RunMRPPrcRe ...@@ -262,6 +251,28 @@ public class RunMRPPrc extends ProcessEJB implements RunMRPPrcLocal, RunMRPPrcRe
{ {
isRequirement=true; isRequirement=true;
} }
// ADDEED BY CPATIL for remove null pointer excwption on 26/05/14
if( dom1 != null )
{
NodeList parentNodeList1 = dom1.getElementsByTagName("Detail3");
Node parentNode1 = parentNodeList1.item(0);
try
{
windowName1 = this.getWinName(parentNode1);
}
catch (Exception e1)
{
e1.printStackTrace();
}
this.wnName1=windowName1;
System.out.println("wnName1 ==>"+wnName1);
}
// end
if (genericUtility == null) if (genericUtility == null)
{ {
......
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