matsim-org / matsim-code-examples

A repository containing code examples around MATSim
GNU General Public License v3.0
79 stars 176 forks source link

Null Pointer Exception #322

Open whizkid-25 opened 4 years ago

whizkid-25 commented 4 years ago

I am seeing the following error when I am trying to run the carsharing module

Error

java.lang.NullPointerException at org.matsim.contrib.carsharing.replanning.CarsharingSubTourPermissableModesCalculator.getPermissibleModes(CarsharingSubTourPermissableModesCalculator.java:54) at org.matsim.core.population.algorithms.ChooseRandomLegModeForSubtour.run(ChooseRandomLegModeForSubtour.java:116) at org.matsim.core.replanning.modules.AbstractMultithreadedModule$PlanAlgoThread.run(AbstractMultithreadedModule.java:234) java.lang.Thread.run(Unknown Source)

I have attached my config file below:

config file.txt

How can I solve this issue?

whizkid-25 commented 4 years ago

This problem is only arising when I am using "CarsharingSubtourModeChoiceStrategy" as strategy!

whizkid-25 commented 4 years ago

@jfbischoff can you tell me how can I solve this ?

jfbischoff commented 4 years ago

Sorry, I have no ideas about working with that extension. Perhaps @balacmi could help.

whizkid-25 commented 4 years ago

@michalmac can you please help me in this regard?