hasnext() returns true, but unable to find the next match in the finder object
Hi,
I am running the below code in Eclipse(Java) and I have added all the required sikuli jar files.
I am comparing two images and while doing that, hasnext() method returns true and is going inside the loop. But the line Match m = f1.next(); fails/returns null.
How is it possible for next() to return null when hasnext() actually returns true?
Please help me here to resolve this issue.
PS: I am new to sikuli
Pattern pa1 = new Pattern(
Pattern pa2 = new Pattern(
Finder f1=new Finder(
f1.
if(
Match m=f1.next();
}
else{
}
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Srikanth Sayyam for more information if necessary.