Commit 4797e7de authored by arawankar's avatar arawankar

UtilMethods.java

-Changes made in mid method
-Added below condition ,if substring length is greater than string length


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@191733 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 50431ab7
......@@ -845,15 +845,25 @@ public class UtilMethods {
String str1 = null;
try
{
if (start > 0)
//Modified by Anjali R. on[08/10/2018][Added below condition ,if substring length is greater than string length][Start]
if(liColWidth < lsStr.length())
{
start = start - 1;
if (start > 0)
{
start = start - 1;
}
if (liColWidth > 0)
{
liColWidth = start + liColWidth;
}
str1 = lsStr.substring( start, liColWidth );
}
if (liColWidth > 0)
else
{
liColWidth = start + liColWidth;
str1 = lsStr;
}
str1 = lsStr.substring( start, liColWidth );
//Modified by Anjali R. on[08/10/2018][Added below condition ,if substring length is greater than string length][End]
}
catch (Exception e)
......
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