<!-- 
RSS generated by JIRA (9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13) at Sun Jan 12 12:07:13 UTC 2025

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>Mojang Studios Jira</title>
    <link>https://bugs.mojang.com</link>
    <description>This file is an XML representation of an issue</description>
    <language>en</language>    <build-info>
        <version>9.12.2</version>
        <build-number>9120002</build-number>
        <build-date>10-01-2024</build-date>
    </build-info>


<item>
            <title>[MC-5232] Unnecessary null-check in Item Rendering code</title>
                <link>https://bugs.mojang.com/browse/MC-5232</link>
                <project id="10400" key="MC">Minecraft: Java Edition</project>
                    <description>&lt;p&gt;File: Seargename &quot;RenderItem&quot;, Notchname &quot;bce&quot;&lt;br/&gt;
Method Signature: a(LEntityItem;IIFFFF)V�&lt;br/&gt;
At Obfuscated Source File Line 176&lt;br/&gt;
At MCP Source File Line 246&lt;br/&gt;
Near:&lt;br/&gt;
```&lt;br/&gt;
GL11.glTranslatef(0.0F, 0.0F, var16 + var17);&lt;br/&gt;
if (Block.blocksList&lt;span class=&quot;error&quot;&gt;&amp;#91;var18.itemID&amp;#93;&lt;/span&gt; != null)&lt;br/&gt;
{&lt;br/&gt;
    this.loadTexture(&quot;/terrain.png&quot;);&lt;br/&gt;
}&lt;br/&gt;
else&lt;br/&gt;
```&lt;br/&gt;
Var18 is the item contained in the EntityItem.&lt;br/&gt;
There are no bounds-checks on this statement to check if var18.itemID will fit into that array. Even though it seems like this is not crashing the game yet, it&apos;s possible that that statement could generate an ArrayIndexOutOfBounds exception in certain cases, like a 4096-block fix.&lt;/p&gt;

&lt;p&gt;To be honest, I have no clue how this doesn&apos;t cause an exception when you drop an item :s&lt;/p&gt;

&lt;p&gt;A better way would be to check the item array and do instanceof.&lt;/p&gt;</description>
                <environment>MCP 725</environment>
        <key id="17810">MC-5232</key>
            <summary>Unnecessary null-check in Item Rendering code</summary>
                <type id="1" iconUrl="https://bugs.mojang.com/secure/viewavatar?size=xsmall&amp;avatarId=18903&amp;avatarType=issuetype">Bug</type>
                                    <status id="5" iconUrl="https://bugs.mojang.com/images/icons/statuses/resolved.png" description="A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.">Resolved</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="7">Invalid</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="riking">Riking (Kane York)</reporter>
                        <labels>
                            <label>code</label>
                    </labels>
                <created>Sat, 22 Dec 2012 23:13:40 +0100</created>
                <updated>Sat, 6 Apr 2013 21:30:15 +0200</updated>
                            <resolved>Sat, 6 Apr 2013 21:30:15 +0200</resolved>
                                    <version>Minecraft 1.4.6</version>
                                                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                            <comments>
                            <comment id="59108" author="bljat" created="Sat, 6 Apr 2013 21:30:15 +0200"  >&lt;p&gt;No answer on querry, assuming not an issue anymore.&lt;/p&gt;</comment>
                            <comment id="54544" author="bljat" created="Sun, 17 Mar 2013 15:59:40 +0100"  >&lt;p&gt;Is this still a concern in the current Minecraft version? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                        <customfield id="customfield_10500" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Confirmation Status</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10300"><![CDATA[Unconfirmed]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_11700" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_11600" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i0dcj3:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    </customfields>
    </item>
</channel>
</rss>