Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.etrice.generator.config/src/org/eclipse/etrice/generator/config/DataConfiguration.xtend')
-rw-r--r--plugins/org.eclipse.etrice.generator.config/src/org/eclipse/etrice/generator/config/DataConfiguration.xtend6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/org.eclipse.etrice.generator.config/src/org/eclipse/etrice/generator/config/DataConfiguration.xtend b/plugins/org.eclipse.etrice.generator.config/src/org/eclipse/etrice/generator/config/DataConfiguration.xtend
index d61f50fc5..c23faec13 100644
--- a/plugins/org.eclipse.etrice.generator.config/src/org/eclipse/etrice/generator/config/DataConfiguration.xtend
+++ b/plugins/org.eclipse.etrice.generator.config/src/org/eclipse/etrice/generator/config/DataConfiguration.xtend
@@ -92,7 +92,11 @@ class DataConfiguration implements IDataConfiguration {
// dynamic
override getPollingTimerUser(SubSystemInstance subsystem) {
- subsystem.config?.dynConfig?.polling
+ val dynConf = subsystem.config?.dynConfig
+ if (dynConf==null)
+ 0
+ else
+ dynConf.polling
}
override getUserCode1(SubSystemInstance subsystem) {

Back to the top