Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C# StringTemplate4 throwing NullReferenceException #36

Open
nilopaim opened this issue May 22, 2015 · 1 comment
Open

C# StringTemplate4 throwing NullReferenceException #36

nilopaim opened this issue May 22, 2015 · 1 comment

Comments

@nilopaim
Copy link

I have a directory containing several .st files. When I issue the following commands, the calling of GetInstanceOf throws NulReferenceException.

Both the directory and the "CGlobals.st" file cited below exists and are visible to the application.

Sample code:

 TemplateGroup group = new TemplateGroupDirectory(@"D:\Templates");
 var f = group.GetInstanceOf("CGlobals");
@chaami
Copy link

chaami commented Dec 14, 2019

You will get the same kind of errors if something prevents the file from successfully loading...
You can get additional logs by making StringTemplate more verbose:

group.Verbose = true;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants