amitbanerjee28 / sikuli-api

Automatically exported from code.google.com/p/sikuli-api
0 stars 0 forks source link

NullPointerException #22

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Run the attached maven project

What is the expected output? Something
What do you see instead? Nothing

The output is 

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further 
details.
Exception in thread "main" java.lang.NullPointerException
        at org.sikuli.api.visual.Canvas.addLabel(Canvas.java:230)
        at tk.ganian.sikuli.template.main(template.java:35)

Original issue reported on code.google.com by deb...@gmail.com on 23 Jan 2013 at 11:53

Attachments:

GoogleCodeExporter commented 8 years ago
May be you failed to create an instance of some class in your project. Usually 
that is the reason for null pointer exception. 

Original comment by lasyaku...@gmail.com on 23 Jan 2013 at 10:48

GoogleCodeExporter commented 8 years ago
Line 31 returns a null ScreenRegion because the target is not appearing in 5 
seconds on screen.
Calling canvas.addLabel(null... causes a NullPointerException.

Original comment by miglecz on 24 Jan 2013 at 11:37

GoogleCodeExporter commented 8 years ago

Original comment by doubles...@gmail.com on 26 Feb 2013 at 7:41