I was following the Microsoft Windows Blog Reader example here.
Half way through I got a NullPointerException so I thought I might have not followed the tutorial correctly.
They also provide the completed code so I copied this and created a new project and when I went to run it I got the same NullPointerException.
I find it hard to believe that Microsoft would have a tutorial with errors in it so I’m wondering is it just me?
If there is a problem is there anywhere where the completed code can be found?
This is the line that causes the exception but it’s not the only one.
var matches = _feedDataSource.Feeds.Where((feed) => feed.Title.Equals(title));
As noted by Hans, you may be better off grabbing one of the samples available at http://code.msdn.microsoft.com/windowsapps.
One nice thing about accessing the samples at the above site is that the code for each sample can be browsed online, so you can get a sense before downloading it if the sample is right for your needs.
But another cool trick is that you can also get these apps using the New Project dialog in Visual Studio 2012. Just use File > New Project, and look for the Online section in the left-hand pane (see below):
Once you’re in the online section for the language of your choice, you can use the search box at the top right to filter for the feature for which you want a sample. I use this regularly to learn about new features as I prepare to implement them.
For more info on developing Windows Store apps, check out Generation App.