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

Primitive object creation with There Sentence and attributes causes exception #188

Closed
Clashsoft opened this issue Sep 22, 2020 · 0 comments · Fixed by #189
Closed

Primitive object creation with There Sentence and attributes causes exception #188

Clashsoft opened this issue Sep 22, 2020 · 0 comments · Fixed by #189
Assignees
Labels
bug Something isn't working
Milestone

Comments

@Clashsoft
Copy link
Member

Example

# Example

There is an Object with name some-object.

Output

// failed to execute phase 'NameResolver' due to exception:
// java.lang.NullPointerException: position
// 	(1 internal call)
// 	at org.fulib.scenarios.diagnostic.Marker.<init>(Marker.java:29)
// 	at org.fulib.scenarios.diagnostic.Marker.error(Marker.java:60)
// 	at org.fulib.scenarios.visitor.resolve.SentenceResolver.visit(SentenceResolver.java:308)
// 	at org.fulib.scenarios.visitor.resolve.SentenceResolver.visit(SentenceResolver.java:39)
// 	at org.fulib.scenarios.ast.sentence.HasSentence.accept(HasSentence.java:24)
// 	at org.fulib.scenarios.visitor.resolve.SentenceResolver.visit(SentenceResolver.java:55)
// 	at org.fulib.scenarios.visitor.resolve.SentenceResolver.visit(SentenceResolver.java:39)
// 	at org.fulib.scenarios.ast.sentence.SentenceList.accept(SentenceList.java:20)
// 	at org.fulib.scenarios.visitor.resolve.SentenceResolver.visit(SentenceResolver.java:73)
// 	at org.fulib.scenarios.visitor.resolve.SentenceResolver.visit(SentenceResolver.java:39)
// 	at org.fulib.scenarios.ast.sentence.ThereSentence.accept(ThereSentence.java:20)
// 	at org.fulib.scenarios.visitor.resolve.SentenceResolver.visit(SentenceResolver.java:55)
// 	at org.fulib.scenarios.visitor.resolve.SentenceResolver.visit(SentenceResolver.java:39)
// 	at org.fulib.scenarios.ast.sentence.SentenceList.accept(SentenceList.java:20)
// 	at org.fulib.scenarios.visitor.resolve.NameResolver.visit(NameResolver.java:131)
// 	at org.fulib.scenarios.visitor.resolve.NameResolver.visit(NameResolver.java:19)
// 	at org.fulib.scenarios.ast.Scenario.accept(Scenario.java:24)
// 	at org.fulib.scenarios.visitor.resolve.NameResolver.visit(NameResolver.java:105)
// 	at org.fulib.scenarios.visitor.resolve.NameResolver.visit(NameResolver.java:19)
// 	at org.fulib.scenarios.ast.ScenarioFile.accept(ScenarioFile.java:30)
// 	at org.fulib.scenarios.visitor.resolve.NameResolver.visit(NameResolver.java:58)
// 	at org.fulib.scenarios.visitor.resolve.NameResolver.visit(NameResolver.java:19)
// 	at org.fulib.scenarios.ast.ScenarioGroup.accept(ScenarioGroup.java:26)
// 	at org.fulib.scenarios.visitor.resolve.NameResolver.lambda$visit$0(NameResolver.java:43)
// 	(13 internal calls)
// 	at org.fulib.scenarios.visitor.resolve.NameResolver.visit(NameResolver.java:43)
// 	at org.fulib.scenarios.ast.CompilationContext.accept(CompilationContext.java:24)
// 	(3 internal calls)
// 	at org.fulib.webapp.tool.Tools.scenarioc(Tools.java:83)
// 	at org.fulib.webapp.tool.Tools.genCompileRun(Tools.java:161)
// 	at org.fulib.webapp.tool.RunCodeGen.run(RunCodeGen.java:148)
// 	at org.fulib.webapp.tool.RunCodeGen.handle(RunCodeGen.java:50)
// 	(21 internal calls)
@Clashsoft Clashsoft added the bug Something isn't working label Sep 22, 2020
@Clashsoft Clashsoft added this to the v1.5.0 milestone Sep 22, 2020
@Clashsoft Clashsoft self-assigned this Sep 22, 2020
Clashsoft added a commit that referenced this issue Sep 22, 2020
Also refactored SentenceResolve.expand().

Closes #188
@Clashsoft Clashsoft changed the title java.lang.NullPointerException: position Primitive object creation with There Sentence causes NullPointerException Sep 26, 2020
@Clashsoft Clashsoft changed the title Primitive object creation with There Sentence causes NullPointerException Primitive object creation with There Sentence and attributes causes NullPointerException Sep 26, 2020
@Clashsoft Clashsoft changed the title Primitive object creation with There Sentence and attributes causes NullPointerException Primitive object creation with There Sentence and attributes causes exception Sep 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant