objectionary / objectionary/lints

`LtTestNotVerb` (with `POSTaggerME`) lint is not thread-safe

Open
#297 11 comments 0 reactions 1 assignee View on GitHub

@h1alexbel is already working on this.

Since Feb 3, 2025.

bug
Dominant language
Java
Stars
14
Forks
39
Avg merge
22h 54m
Merged PRs (30d)
90

Description

I'm running this code in many threads

new Program(xmir).defects()

This is the stack trace:

Caused by: java.lang.NullPointerException: Cannot invoke "opennlp.tools.util.Sequence.getOutcomes()" because "this.bestSequence" is null
	at opennlp.tools.postag.POSTaggerME.tag(POSTaggerME.java:150)
	at opennlp.tools.postag.POSTaggerME.tag(POSTaggerME.java:144)
	at org.eolang.lints.misc.LtTestNotVerb.defects(LtTestNotVerb.java:99)
	at org.eolang.lints.misc.LtTestNotVerb.defects(LtTestNotVerb.java:58)
	at org.eolang.lints.Program.defects(Program.java:105)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.