← Back to team overview

sikuli-driver team mailing list archive

[Bug 1833164] Re: [1.1.4] Region.findText() crashes with NPE --- fixed 2019-06-18 build #308

 

** Changed in: sikuli
       Status: Fix Committed => Fix Released

** Changed in: sikuli
    Milestone: 1.1.4 => 2.0.0

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1833164

Title:
  [1.1.4] Region.findText() crashes with NPE --- fixed 2019-06-18 build
  #308

Status in Sikuli:
  Fix Released

Bug description:
  1.1.4-SNAPSHOT-#306-2019-06-12_08:07/Windows10.0/Java11(64)11.0.2+9

  
  same code works fine with version 288

  
  menu = find("menu.png")

  print(menu)

  menu.findText('Search').click()

  
  [error] script [ error ] stopped with error at line --unknown--
  [error] Error caused by: Traceback (most recent call last): File "C:\Temp\Sikuli\Training\error.sikuli\error.py", line 8, in <module> menu.findText('Search').click() at org.sikuli.script.Image.isValid(Image.java:203)
  at org.sikuli.script.Region.wait(Region.java:2299)
  at org.sikuli.script.Region.waitText(Region.java:2751)
  at org.sikuli.script.Region.findText(Region.java:2767)
  at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  at java.base/java.lang.reflect.Method.invoke(Method.java:566)
  java.lang.NullPointerException: java.lang.NullPointerException 

  M[6,25 567x15]@S(0) S:1.00 C:289,32 [2498 msec]

  1.1.4-SNAPSHOT-#306-2019-06-12_08:07/Windows10.0/Java11(64)11.0.2+9

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1833164/+subscriptions


References