cogu / autosar

A set of python modules for working with AUTOSAR XML files
MIT License
387 stars 168 forks source link

Missing initialization of variable causes error #82

Closed HB25 closed 7 months ago

HB25 commented 3 years ago

variantProps needs to be initialized to None, too.

Otherwise, my call to createRequirePort(name, if_name, comspec=comspecs) results in an error.

https://github.com/cogu/autosar/blob/cb01395cd877c849342e1e6db280948711131945/autosar/builder.py#L29

(Sorry for not providing a PR. I did a dirty hack which makes it work for me w/o any other testing.)

cogu commented 3 years ago

@HB25, I'm not sure what you're trying to do. Are you perhaps trying to create an init-value from an application data type? What kind of port interface is this? SenderReceiver?

cogu commented 7 months ago

Unable to reproduce. Closing due to inactivity.