<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wikidot="http://www.wikidot.com/rss-namespace">

	<channel>
		<title>System.NullReferenceException - Object reference not set to an instance of an object</title>
		<link>http://rbwhitaker.wikidot.com/forum/t-1669236/system-nullreferenceexception-object-reference-not-set-to-an</link>
		<description>Posts in the discussion thread &quot;System.NullReferenceException - Object reference not set to an instance of an object&quot;</description>
				<copyright></copyright>
		<lastBuildDate>Sun, 19 Apr 2026 11:26:28 +0000</lastBuildDate>
		
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-1669236#post-2486140</guid>
				<title>Re: System.NullReferenceException - Object reference not set to an instance of an object</title>
				<link>http://rbwhitaker.wikidot.com/forum/t-1669236/system-nullreferenceexception-object-reference-not-set-to-an#post-2486140</link>
				<description></description>
				<pubDate>Tue, 05 Apr 2016 04:27:30 +0000</pubDate>
				<wikidot:authorName>Bubbleob</wikidot:authorName>				<wikidot:authorUserId>2679895</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Figured it out.</p> <p>I was misreading the tutorial - the String in currentLevel <em>must</em> be unique from the Level content name for XNA to instantiate seperately.</p> <p>Kind of obvious, but it took me a while to figure it out.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-1669236#post-2486107</guid>
				<title>System.NullReferenceException - Object reference not set to an instance of an object</title>
				<link>http://rbwhitaker.wikidot.com/forum/t-1669236/system-nullreferenceexception-object-reference-not-set-to-an#post-2486107</link>
				<description></description>
				<pubDate>Tue, 05 Apr 2016 03:18:29 +0000</pubDate>
				<wikidot:authorName>Bubbleob</wikidot:authorName>				<wikidot:authorUserId>2679895</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I've finally got XNA to cooperate with using the DLLs, (thanks for the post on another thread RBW) but now I'm getting the below error when I'm trying to run the Build.</p> <p>System.NullReferenceException - Object reference not set to an instance of an object</p> <p>with this section of code highlighted (where the ** are):</p> <div class="code"> <pre><code> protected override void LoadContent() { // Create a new SpriteBatch, which can be used to draw textures. spriteBatch = new SpriteBatch(GraphicsDevice); levelSet = Content.Load&lt;LevelSet&gt;(&quot;Level&quot;); **currentLevel = levelSet.GetLevel(&quot;Level&quot;).CreateInstance();** // TODO: use this.Content to load your game content here }</code></pre></div> <p>am i mising?</p> 
				 	]]>
				</content:encoded>							</item>
				</channel>
</rss>