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

NullPointerException #17

Open
michalmac opened this issue Jul 8, 2020 · 2 comments
Open

NullPointerException #17

michalmac opened this issue Jul 8, 2020 · 2 comments
Assignees

Comments

@michalmac
Copy link
Member

https://travis-ci.org/github/matsim-vsp/pave/builds/706065889

Seems that serviceTask may be null:

double start = serviceTask.getBeginTime();

@michalmac
Copy link
Member Author

michalmac commented Jul 8, 2020

Same here: https://travis-ci.org/github/matsim-vsp/pave/builds/706069530 (different test, same error)

@tschlenther
Copy link
Collaborator

tschlenther commented Jul 8, 2020

The tests run through on my machine - build #231 was successfull after a restart, too. When trying to reconstruct the NullPointer, i really was wondering why the error came up with an ActivityEndEvent and not with an ActivityStartEvent.

serviceTask may be null, if no PFAVServiceTask within the tour with status = PERFORMED or status = STARTED can be found.
Normally, whenever the corresponding activity is ending, the status of the Task should have one of the aforementioned statuses.

As i could not find a logical reason for that, at the moment, i replaced the NullPointer with an IllegalStateException that gives a somewhat more expressive error message...
I will keep an eye on this, but really do not know how to solve it or why it came up in the first place. I should restructure most of the package anyway eventually..

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

No branches or pull requests

2 participants