Skip to content

Commit

Permalink
Merge pull request #2490 from matsim-org/emissionsBugfix
Browse files Browse the repository at this point in the history
add a break for a switch in emissions contrib
  • Loading branch information
kainagel committed Apr 4, 2023
2 parents 9af4dcb + 0549379 commit 072b330
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -138,7 +138,9 @@ static void handleNullVehicleECG(Id<Vehicle> vehicleId, EmissionsConfigGroup emi
"No vehicle defined for id " + vehicleId + ". The vehicle will be ignored." );
noVehWarnCnt++;
if ( noVehWarnCnt == 10 ) logger.warn( Gbl.FUTURE_SUPPRESSED );
}
}
break;
// yyyy I found the above without the "break". There is https://github.com/matsim-org/matsim-code-examples/issues/910, according to which it seems that this is a bug. There should be a testcase, but I guess there ain't. kai, apr'22
default:
throw new RuntimeException( "Not yet implemented. Aborting..." );
}
Expand Down

0 comments on commit 072b330

Please sign in to comment.