-
Notifications
You must be signed in to change notification settings - Fork 172
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
Issues with cadyts contrib #27
Comments
Are you using PT in your simulation? If so, PT doesn't have any plans (like a regular agent has) so this could explain why you are getting the java.lang.NullPointerException from line 131 in the class PlansTranslatorBasedOnEvents.java: This is a known issue - more details and a possible fix here: |
Hello again, I believe I did what you recommended correctly, I don't know if i did something wrong or actually to put (person=null) return it will not make difference in my case. Do you know anything else I can do? Thanks for any help!! |
if ( person == null ) return ; is probably not the same as what you tried with ? and :; see here: https://stackoverflow.com/questions/18124745/java-ternary-operator-and-nullpointerexception Your code is not exactly the same as that one, but since you did not give the full code I cannot really tell. |
I'm trying to automatically calibrate my simulation with the cadyts extension, using maven as recommended, because the result of the counts I had with the simulation was quite different from the real counts.
I believe I did everything correctly, but when I run the matsim via maven appears this error:
java.lang.NullPointerException
at org.matsim.contrib.cadyts.car.PlansTranslatorBasedOnEvents.handleEvent (PlansTranslatorBasedOnEvents.java:131)
I am attaching my log file.
Thanks in advance for any help.
Logfile.txt
The text was updated successfully, but these errors were encountered: