sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #07721
[Bug 907726] Re: Null pointer exception on reading text from a region [Java]
Stack Trace:
[info] Text Recognizer inited.
java.lang.NullPointerException
at java.io.Reader.<init>(Reader.java:61)
at java.io.InputStreamReader.<init>(InputStreamReader.java:55)
at org.sikuli.script.ResourceExtractor.writeFileList(ResourceExtractor.java:28)
at org.sikuli.script.ResourceExtractor.extract(ResourceExtractor.java:22)
at org.sikuli.script.TextRecognizer.init(TextRecognizer.java:41)
at org.sikuli.script.TextRecognizer.<init>(TextRecognizer.java:33)
at org.sikuli.script.TextRecognizer.getInstance(TextRecognizer.java:60)
at org.sikuli.script.TextRecognizer.<clinit>(TextRecognizer.java:25)
at org.sikuli.script.Region.text(Region.java:975)
--
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/907726
Title:
Null pointer exception on reading text from a region [Java]
Status in Sikuli:
New
Bug description:
In all versions of 1.0 of Sikuli on Windows and Mac a Null pointer
exception is thrown when used within testing frameworks that implement
their own classloader.
Fix: Update https://github.com/sikuli/sikuli/blob/develop/sikuli-script/src/main/java/org/sikuli/script/ResourceExtractor.java, Line 17 from:
ClassLoader cl = ClassLoader.getSystemClassLoader();
to
ClassLoader cl = ResourceExtractor.class.getClassLoader();
To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/907726/+subscriptions
References