Swipe function is not working overloaded method

Hi All…

The swipe function is not working and it throws ‘Null’… Please look in to the below mmethod.
I need to swipe through the list of dropdown and get select a value from the list

	public void getListofValuesfromDropDown(String expValueinList, WebElement dropParent,String drpDownChildType, String drpDownChild )

{

	Thread.sleep(200);
	By by2 = op.getLocatorType(drpDownChildType, drpDownChild);
	
	List<WebElement> list = dropParent.findElements(by2);
	
	
	System.out.println("Total Number of values Present in select box="+list.size());
	System.out.println(r1);
	while(!r1)
	{
		System.out.println("Entered in to while loop");
		System.out.println(r1);
	for(int i=0; i<list.size();i++ )
	{
	String listValue = list.get(i).getText();
	
	//countryList.add(listValue);
	//System.out.println(listValue);
			Thread.sleep(200);
	//
	//System.out.println("expected country "+expValueinList);
	if(listValue.equals(expValueinList))
			{
		    //boolean swipe = swipeUP();
		    System.out.println("if is working");
			list.get(i).click();
			r1=true;
			
			break;
			}
			else
			{	
				continue;
			}
		
		}
	
	try
	{
		
		System.out.println("Entered to try block");
		//By by3 = op.getLocatorType(drpDownChildType, drpDownChild);
		
		
		MobileElement elm =driver.findElement(By.xpath("//android.widget.CheckedTextView[contains(@resource-id,'android:id/text1') and @index='5']"));
		 elm .swipe(SwipeElementDirection.UP, 12000);
		
	
	}catch(Exception e)
	{
		System.out.println("Catch is running");
		System.out.println(e.getMessage()+"Swipe is not working");
	}
	System.out.println(r1);
	Thread.sleep(200);
	continue;
	}
	System.out.println("While is not executing");
		
	}

the list of visible text from the dropdown is getting printed in above method…
but iam getting ‘Null’ along with Swipe is not working" print value…and the swipe is not working for the condition “if(listValue.equals(expValueinList))”

Please look in to the attached screen shot below.