Proguard, Robotium Null Pointer Exception

39 views
Skip to first unread message

Demetreaus Coleman

unread,
Aug 5, 2013, 8:48:49 PM8/5/13
to robotium-...@googlegroups.com
Hello, 

I'm using Robotium with Proguard and the following keeps generating a null pointer exception? Any assistance would be greatly appreciated thanks.

  1.  public ExtSolo solo;  
  2.   
  3.         public boolean InboxExist(){  
  4.             boolean bResults = false;  
  5.               
  6.             ArrayList<WebElement> anArray  = new ArrayList<WebElement>();   
  7.             //This is where the null pointer reference keeps occurring  
  8.             anArray =  solo.getCurrentWebElements();  
  9.             // thanks for your help!!!         
  10.             outerloop:  
  11.             for(int i = 0; i < anArray.size(); i++){  
  12.                   
  13.                 WebElement myArray = anArray.get(i);  
  14.                 if( (myArray.getClassName().equalsIgnoreCase("pin3") && myArray.getTagName().equalsIgnoreCase("A")) == true){  
  15.                     bResults = true;  
  16.                     solo.clickOnWebElement(myArray);  
  17.                     solo.sleep(2000);  
  18.                     break outerloop;  
  19.                 }else{  
  20.                     bResults = false;  
  21.                 }  
  22.             }  
  23.               
  24.             return  bResults;  
  25.         }  

Reply all
Reply to author
Forward
0 new messages