Page 1 of 1

Unsafe Designer.DefaultTemplatesPath in 2013.1

Posted: Sat Apr 13, 2013 7:55 pm
by Frank Froese
I just struggled through some strange behaviour with the StiOptions.Designer.DefaultTemplatesPath in Version 2013.1.

If this default path is not set explicitly the framework will use ApplicationDirectory + "\\Templates\\" by default. Everything fine with that. But if this directory doesn't contain any mrt files but other none stimul files, you got an null reference exception in the designer's when clicking the main file menu. The exception only flies when using the ribbon designer.

It took me a couple of hours to figure out what the excpetion caused. We use in our system a directory named 'templates' for some other template engine that brought StimulReports to fall after upgrading to 2013.1. I think you can handle the template directory somehow more robust. It's not always a mrt file that is stored in a directory named templates.

Re: Unsafe Designer.DefaultTemplatesPath in 2013.1

Posted: Mon Apr 15, 2013 12:30 pm
by Alex K.
Hello,

The issue is fixed.
Will be available on the next prerelease build on this week.

Thank you.