← Back to team overview

sikuli-driver team mailing list archive

[Bug 1224863] Re: Null pointer exception raised at click function call

 

Hi, 
I found the origin of the bug.
It occurs when region is created with X = width of the screen and/or Y = height of the screen
Examples:
r = Region(1600, 0, 0,  0)
click(r)

r = Region(0, 1200, 0,  0)
click(r)

r = Region(1600, 1200, 0,  0)
click(r)

But 
r = Region(0, 0, 0, 0)
click(r)

works (despite of an error message that inform you that region is
outside the screen)

Best regards, 
Pierre Dumas

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

Title:
  Null pointer exception raised at click function call

Status in Sikuli:
  New

Bug description:
  1 - Version of SIKULI : X-1.0.1
  2 - Operating system : Windows XP Pro SP3
  3 - Procedure to reproduce the bug: The Null Pointer Exception was raised in this line of my code

        self.clickFunction_dict[action.lower()](reg)

  where:
        self.clickFunction_dict = {"left" : click, "right" : rightClick, "double" : doubleClick}
        action = "left"
        reg is a region object created before.

  This function has worked many thousands times before to crash
  yesterday.

  4 - I recently passed to SIKULI X-1.0.1. I never encountered this
  problem with SIKULI X-1.0-rc3.

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


References