<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Meaning of GeometryEngine nullable return values in Kotlin Maps SDK Questions</title>
    <link>https://community.esri.com/t5/kotlin-maps-sdk-questions/meaning-of-geometryengine-nullable-return-values/m-p/1506094#M440</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/815034"&gt;@jussih&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;These functions that are suffixed with "OrNull" are lenient functions, following the pattern used in the Kotlin standard library, for example &lt;A href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.text/to-int-or-null.html" target="_self"&gt;String.toIntOrNull&lt;/A&gt;. It means that the function is lenient, i.e. it won't throw an exception if the input is invalid or some other error occurs, instead it returns null.&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;Does a null return value mean an error occurred, or that input parameters are invalid somehow?&lt;/BLOCKQUOTE&gt;&lt;P&gt;It could be either. As you point out, the doc should specify that, we are going to make some improvements to that. Thank you for pointing it out.&lt;/P&gt;</description>
    <pubDate>Wed, 17 Jul 2024 09:09:56 GMT</pubDate>
    <dc:creator>GuntherHeppner</dc:creator>
    <dc:date>2024-07-17T09:09:56Z</dc:date>
    <item>
      <title>Meaning of GeometryEngine nullable return values</title>
      <link>https://community.esri.com/t5/kotlin-maps-sdk-questions/meaning-of-geometryengine-nullable-return-values/m-p/1505762#M439</link>
      <description>&lt;P&gt;What is the meaning and intention of nullable return values from GeometryEngine, such as: GeometryEngine.distanceOrNull&lt;BR /&gt;GeometryEngine.projectOrNull&lt;BR /&gt;GeometryEngine.clipOrNull&lt;BR /&gt;... and so on, there are many methods like this&lt;/P&gt;&lt;P&gt;Does a null return value mean an error occurred, or that input parameters are invalid somehow?&lt;/P&gt;&lt;P&gt;Typically I would expect the api documentation to specify what a null return value means, but I could not find explanations for these, so maybe its some general pattern for this SDK?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2024 12:02:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/kotlin-maps-sdk-questions/meaning-of-geometryengine-nullable-return-values/m-p/1505762#M439</guid>
      <dc:creator>jussih</dc:creator>
      <dc:date>2024-07-16T12:02:10Z</dc:date>
    </item>
    <item>
      <title>Re: Meaning of GeometryEngine nullable return values</title>
      <link>https://community.esri.com/t5/kotlin-maps-sdk-questions/meaning-of-geometryengine-nullable-return-values/m-p/1506094#M440</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/815034"&gt;@jussih&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;These functions that are suffixed with "OrNull" are lenient functions, following the pattern used in the Kotlin standard library, for example &lt;A href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.text/to-int-or-null.html" target="_self"&gt;String.toIntOrNull&lt;/A&gt;. It means that the function is lenient, i.e. it won't throw an exception if the input is invalid or some other error occurs, instead it returns null.&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;Does a null return value mean an error occurred, or that input parameters are invalid somehow?&lt;/BLOCKQUOTE&gt;&lt;P&gt;It could be either. As you point out, the doc should specify that, we are going to make some improvements to that. Thank you for pointing it out.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2024 09:09:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/kotlin-maps-sdk-questions/meaning-of-geometryengine-nullable-return-values/m-p/1506094#M440</guid>
      <dc:creator>GuntherHeppner</dc:creator>
      <dc:date>2024-07-17T09:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: Meaning of GeometryEngine nullable return values</title>
      <link>https://community.esri.com/t5/kotlin-maps-sdk-questions/meaning-of-geometryengine-nullable-return-values/m-p/1506118#M441</link>
      <description>&lt;P&gt;Thanks for the reply, makes sense.&lt;/P&gt;&lt;P&gt;I was a bit confused though because I assumed calculations like distance and projection would not fail often. Are there some specific things that can go wrong with the parameters or calculation?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2024 11:23:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/kotlin-maps-sdk-questions/meaning-of-geometryengine-nullable-return-values/m-p/1506118#M441</guid>
      <dc:creator>jussih</dc:creator>
      <dc:date>2024-07-17T11:23:51Z</dc:date>
    </item>
  </channel>
</rss>

