Yes: notepad.window().findText("File") gave me NPE. This fix removed this
problem.


2014/1/6 Raimund Hocke <notifications@github.com>

> In API/src/main/java/org/sikuli/script/Region.java:
>
> > @@ -2015,7 +2015,8 @@ private boolean handleFindFailedShowDialog(Object target, boolean shouldCapture)
> >        }
> >        if (lastMatch != null) {
> >          lastMatch.setImage(rf._image);
> > -        rf._image.setLastSeen(lastMatch.getRect(), lastMatch.getScore());
> > +        if(rf._image != null)
>
> Might be null, when text search is used? Correct?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/RaiMan/SikuliX-2014/pull/7/files#r8670895>
> .
>