You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Are you able replicate the bug in the latest version of MontiCore.
I am able to replicate the bug in the latest version of MontiCore
Describe the bug
As previously reported, there is sometimes the issue that the StatisticListener does not store the start time of a task execution. If the start time is missing, calculating the execution time of the task may throw a NullPointerException.
Steps to reproduce
Create a dummy task
Call afterExecution(Task) for that task without callit beforeExecution(Task) first
Expected behaviour
First, I would expect the start time to always be present. However, as we cannot reliably assure this, I then would expect the StatisticListener to not throw a NullPointerException. Instead, skip the calculation of the task's execution time and report the missing start time in the debug log.
Minimal reproducible example
No response
Relevant CI workflow/pipeline
No response
Gradle Log
No response
Additional information
No response
The text was updated successfully, but these errors were encountered:
Are you able replicate the bug in the latest version of MontiCore.
Describe the bug
As previously reported, there is sometimes the issue that the
StatisticListener
does not store the start time of a task execution. If the start time is missing, calculating the execution time of the task may throw a NullPointerException.Steps to reproduce
afterExecution(Task)
for that task without callitbeforeExecution(Task)
firstExpected behaviour
First, I would expect the start time to always be present. However, as we cannot reliably assure this, I then would expect the StatisticListener to not throw a NullPointerException. Instead, skip the calculation of the task's execution time and report the missing start time in the debug log.
Minimal reproducible example
No response
Relevant CI workflow/pipeline
No response
Gradle Log
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: