This project has moved and is read-only. For the latest updates, please go here.

Cannot use variable for Source Uri

May 5, 2016 at 11:33 PM
I attempted to use a variable for the Source Uri, and received a Null Pointer Reference Exception, even with the variable hardcoded. It looks like model.DataSource.SourceUri is being used several times in the PrimeOutput() method, when it is not being set for variables

I ended up adding the following line on line 253 in the PreExecute() method, which fixed the issue:
m.DataSource.SourceUri = uri;
Great work, I look forward to your next build.
May 8, 2016 at 10:11 PM

you are right, there was an error with the code. However your fix would not correct the problem in general. I've fixed it with the last release. Please update it and confirm that is working now.

Marked as answer by webking on 5/8/2016 at 2:12 PM
May 9, 2016 at 7:14 PM
It worked beautifully. Thank you!