use of collectLinesText function

Asked by Rony Verch on 2019-01-02

Hey, I am trying to use the collectLinesText function to get all the text shown on a page. When I run the following code:

result = collectLinesText()

I get the error:

[error] java.lang.NullPointerException ( java.lang.NullPointerException )

I am not sure if I am missing something (such as an import) but i've tried to look at the documentation and previous questions and was unable to find a fix. I am also running this with the newest version of SikuliX, 1.1.4, using the IDE (sikulix.jar).

Any help would be appreciated. Thanks.

Question information

Language:
English Edit question
Status:
Solved
For:
Sikuli Edit question
Assignee:
No assignee Edit question
Solved by:
RaiMan
Solved:
2019-01-03
Last query:
2019-01-03
Last reply:
2019-01-03
Best RaiMan (raimund-hocke) said : #1

there was a bug in the implementation, which is fixed with lates build #171

Rony Verch (rverch) said : #2

Thanks RaiMan, that solved my question.