<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Infinity Code Forum — NullRef in OnlineMapsMarker when creating markers]]></title>
		<link>https://forum.infinity-code.com/viewtopic.php?id=1631</link>
		<atom:link href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=1631&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in NullRef in OnlineMapsMarker when creating markers.]]></description>
		<lastBuildDate>Fri, 30 Oct 2020 18:51:17 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: NullRef in OnlineMapsMarker when creating markers]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=6792#p6792</link>
			<description><![CDATA[<p>May I ask what exactly is against your company policy?<br />A new temporary project that contains only a map and part of a script enough to reproduce an exception?<br />I understand that projects are in most cases a corporate secret, and I do not ask you to send me work projects. <br />Please reread the last line of my previous post.</p><p>In general, there are three ways:<br />1. You send me a project and I debug it, fix the error on my side, or show you the error on your side.<br />2. I connect to you using TeamViewer or AnyDesc, and try to debug this on your side. <br />This is very inconvenient for me and for you, and requires discussion to schedule the time of the call, because you and I are in different time zones.<br />3. You debug it yourself. The difficulty and time of debugging depends on your programming skill, the complexity of the error, and your luck.</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Fri, 30 Oct 2020 18:51:17 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=6792#p6792</guid>
		</item>
		<item>
			<title><![CDATA[Re: NullRef in OnlineMapsMarker when creating markers]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=6791#p6791</link>
			<description><![CDATA[<p>That is against company policy unfortunately, we are using this plugin in a professional setting. </p><p>Are there any other alternatives? This support request was simply to speed up the process of manually debugging the script(s). If there are none, that will be my next step. Thank you for the help so far</p>]]></description>
			<author><![CDATA[null@example.com (taylorbrown2686)]]></author>
			<pubDate>Fri, 30 Oct 2020 18:29:33 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=6791#p6791</guid>
		</item>
		<item>
			<title><![CDATA[Re: NullRef in OnlineMapsMarker when creating markers]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=6790#p6790</link>
			<description><![CDATA[<p>The latest version has the following lines:<br /></p><div class="codebox"><pre><code>375: if (texture != null)
376: {
377:     if (map.control.resultIsTexture) _colors = texture.GetPixels32();
378:     _width = _textureWidth = width ?? texture.width;
379:     _height = _textureHeight = height ?? texture.height;
380: }</code></pre></div><p>Line 379 is equivalent to the following line:<br /></p><div class="codebox"><pre><code>_height = _textureHeight = height != null ? height.Value : texture.height;</code></pre></div><p>This means that only texture can throw a NullReferenceException.<br />But, the texture cannot be null, because this is checked on line 375.</p><p>Please send me your project by email (support@infinity-code.com). I will check it.<br />To make it clear:<br />I don&#039;t need your working project. I need any temporary project where the problem is appears.</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Fri, 30 Oct 2020 18:21:07 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=6790#p6790</guid>
		</item>
		<item>
			<title><![CDATA[Re: NullRef in OnlineMapsMarker when creating markers]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=6789#p6789</link>
			<description><![CDATA[<p>The most recent. I saw the error line was related to a texture when the script is initializing. This makes sense as I am dynamically changing the marker texture based on a filter, but the texture is never null, malformed, or read/write disabled.</p>]]></description>
			<author><![CDATA[null@example.com (taylorbrown2686)]]></author>
			<pubDate>Fri, 30 Oct 2020 14:22:43 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=6789#p6789</guid>
		</item>
		<item>
			<title><![CDATA[Re: NullRef in OnlineMapsMarker when creating markers]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=6788#p6788</link>
			<description><![CDATA[<p>Hello.</p><p>Your exception has a strange line.<br />Which version of Online Maps are you using?</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Fri, 30 Oct 2020 11:24:33 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=6788#p6788</guid>
		</item>
		<item>
			<title><![CDATA[NullRef in OnlineMapsMarker when creating markers]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=6786#p6786</link>
			<description><![CDATA[<p>Hello Infinity Code, I am experiencing a problem with the Marker class, and it is causing my map to only display one marker.</p><p>NullReferenceException: Object reference not set to an instance of an object<br />OnlineMapsMarker.Init (System.Nullable`1[T] width, System.Nullable`1[T] height) (at Assets/OnlineMapsV3/Online maps/Scripts/Markers/Instances/OnlineMapsMarker.cs:379)</p><p>This is the exact error. I use the following method to create markers with two different filters:</p><p>public void PlaceMarkersOnMap(string eventTitleFilter) {<br />&nbsp; &nbsp; &nbsp; markerManager.RemoveAll();<br />&nbsp; &nbsp; &nbsp; foreach (MarkerData data in MarkerDataManager.Instance.MarkerData) {<br />&nbsp; &nbsp; &nbsp; &nbsp; foreach (EventAtLocation eventAL in data.HostedEvents) {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (eventAL.EventType == mapType) {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (eventAL.EventTitle == eventTitleFilter) {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; markerManager.Create(new Vector2(data.Longitude, data.Latitude),<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; markers[GetMarkerFromName(eventAL.EventTitle)],<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; data.UID.ToString());<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; this.gameObject.AddComponent&lt;MarkerTouch&gt;();<br />&nbsp; &nbsp; }</p><p>This is the only method that controls marker creation. Can anyone identify this problem and recommend a solution? Thank you for the help!</p>]]></description>
			<author><![CDATA[null@example.com (taylorbrown2686)]]></author>
			<pubDate>Thu, 29 Oct 2020 17:55:02 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=6786#p6786</guid>
		</item>
	</channel>
</rss>
