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

TrekSetCourseTest fails with Cannot get property 'position' on null object #57

Open
TerryEbdon opened this issue Jan 8, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@TerryEbdon
Copy link
Owner

TerryEbdon commented Jan 8, 2024

Looks like this was broken by commit 5c8f673 for issue #26. The broken tests will be reimplemented in a new test class, as part of #59. TrekSetCourseTest will be updated to reflect current behaviour of Trek.groovy.

testBadCourse

java.lang.NullPointerException: Cannot get property 'position' on null object
	at org.codehaus.groovy.runtime.NullObject.getProperty(NullObject.java:62)
	at org.codehaus.groovy.runtime.InvokerHelper.getProperty(InvokerHelper.java:167)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGroovyObjectGetProperty(AbstractCallSite.java:336)
	at net.ebdon.trk21.Trek.setCourse(Trek.groovy:150)
	at net.ebdon.trk21.Trek$setCourse.call(Unknown Source)
	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:130)
	at net.ebdon.trk21.TrekSetCourseTest.testBadCourse(TrekSetCourseTest.groovy:139)

testBadWarpfactor

java.lang.NullPointerException: Cannot get property 'position' on null object
	at org.codehaus.groovy.runtime.NullObject.getProperty(NullObject.java:62)
	at org.codehaus.groovy.runtime.InvokerHelper.getProperty(InvokerHelper.java:167)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGroovyObjectGetProperty(AbstractCallSite.java:336)
	at net.ebdon.trk21.Trek.setCourse(Trek.groovy:150)
	at net.ebdon.trk21.Trek$setCourse.call(Unknown Source)
	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:130)
	at net.ebdon.trk21.TrekSetCourseTest.testBadWarpfactor(TrekSetCourseTest.groovy:149)
@TerryEbdon TerryEbdon added the bug Something isn't working label Jan 8, 2024
@TerryEbdon TerryEbdon self-assigned this Jan 8, 2024
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

No branches or pull requests

1 participant