Even though it is possible to mark a model config as optional, the simulation will fail as soon as a simulation behavior extension wants to be created. Guice does not allow to inject nulls, unless the optional parameters are explicitly marked as @Nullable. Furthermore, the extensions will still listen to events, which could lead to a NullPointerException if we allow nullable parameters.
Even though it is possible to mark a model config as
optional
, the simulation will fail as soon as a simulation behavior extension wants to be created. Guice does not allow to injectnull
s, unless the optional parameters are explicitly marked as@Nullable
. Furthermore, the extensions will still listen to events, which could lead to aNullPointerException
if we allow nullable parameters.This should obviously be resolved.