Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NPE in TrStepped #3840

Closed
yegor256 opened this issue Jan 22, 2025 · 7 comments
Closed

NPE in TrStepped #3840

yegor256 opened this issue Jan 22, 2025 · 7 comments

Comments

@yegor256
Copy link
Member

java.lang.NullPointerException: Cannot invoke "com.jcabi.xml.XSL.with(String, Object)" because the return value of "org.cactoos.Scalar.value()" is null
	at org.eolang.parser.TrStepped.lambda$new$1(TrStepped.java:70)
	at com.yegor256.xsline.StLambda.apply(StLambda.java:115)
	at com.yegor256.xsline.StAfter.lambda$new$0(StAfter.java:50)
	at com.yegor256.xsline.StLambda.apply(StLambda.java:115)
	at com.yegor256.xsline.StEnvelope.apply(StEnvelope.java:61)
	at com.yegor256.xsline.Xsline.pass(Xsline.java:85)
	at org.eolang.parser.PhiSyntax.parsed(PhiSyntax.java:109)
	at org.eolang.parser.PhiSyntaxTest.checksValidPhiExpressions(PhiSyntaxTest.java:130)

This is a flaky test, I can't reproduce this bug any more.

@volodya-lombrozo
Copy link
Member

volodya-lombrozo commented Jan 24, 2025

@yegor256 I got the same bug locally:

Caused by: java.lang.NullPointerException: Cannot invoke "com.jcabi.xml.XSL.with(String, Object)" because the return value of "org.cactoos.Scalar.value()" is null
    at org.eolang.parser.TrStepped.lambda$new$1 (TrStepped.java:70)
    at com.yegor256.xsline.StLambda.apply (StLambda.java:115)
    at com.yegor256.xsline.StAfter.lambda$new$0 (StAfter.java:50)
    at com.yegor256.xsline.StLambda.apply (StLambda.java:115)
    at com.yegor256.xsline.StEnvelope.apply (StEnvelope.java:61)
    at com.yegor256.xsline.Xsline.pass (Xsline.java:85)
    at org.eolang.parser.Xmir.converted (Xmir.java:237)
    at org.eolang.parser.Xmir.toPhi (Xmir.java:194)
    at org.eolang.maven.PhiMojo.translated (PhiMojo.java:181)
    at org.eolang.maven.PhiMojo.translate (PhiMojo.java:149)
    at org.eolang.maven.PhiMojo.lambda$exec$0 (PhiMojo.java:107)
    at org.eolang.maven.util.Threaded.lambda$total$0 (Threaded.java:75)
    at org.cactoos.scalar.CallableEnvelope.call (CallableEnvelope.java:53)
    at java.util.concurrent.FutureTask.run (FutureTask.java:317)
    at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1144)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:642)
    at java.lang.Thread.run (Thread.java:1583)

@volodya-lombrozo
Copy link
Member

Blocks: objectionary/jeo-maven-plugin#982

volodya-lombrozo added a commit to volodya-lombrozo/eo that referenced this issue Jan 27, 2025
volodya-lombrozo added a commit to volodya-lombrozo/eo that referenced this issue Jan 27, 2025
volodya-lombrozo added a commit to volodya-lombrozo/eo that referenced this issue Jan 27, 2025
volodya-lombrozo added a commit to volodya-lombrozo/eo that referenced this issue Jan 27, 2025
volodya-lombrozo added a commit to volodya-lombrozo/eo that referenced this issue Jan 27, 2025
github-merge-queue bot pushed a commit that referenced this issue Jan 27, 2025
feat(#3840): Fix Concurrency Issue Related to `TrStepped`
@volodya-lombrozo
Copy link
Member

@yegor256 Could you release a new minor version please? It's kinda blocker

@yegor256
Copy link
Member Author

@rultor release, tag is 0.50.2

@rultor
Copy link
Contributor

rultor commented Jan 27, 2025

@rultor release, tag is 0.50.2

@yegor256 OK, I will release it now. Please check the progress here.

@rultor
Copy link
Contributor

rultor commented Jan 27, 2025

@rultor release, tag is 0.50.2

@yegor256 Done! FYI, the full log is here (took me 11min).

@yegor256
Copy link
Member Author

@volodya-lombrozo try version 0.50.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants