<!-- 
RSS generated by JIRA (4.4#649-r158309) at Sat May 25 01:12:59 CDT 2013

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 add field=key&field=summary to the URL of your request.
For example:
http://dev.clojure.org/jira/si/jira.issueviews:issue-xml/CLJ-702/CLJ-702.xml?field=key&field=summary
-->
<rss version="0.92" >
<channel>
    <title>Clojure JIRA</title>
    <link>http://dev.clojure.org/jira</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>4.4</version>
        <build-number>649</build-number>
        <build-date>25-07-2011</build-date>
    </build-info>

<item>
            <title>[CLJ-702] case gives NPE when used with nil</title>
                <link>http://dev.clojure.org/jira/browse/CLJ-702</link>
                <project id="10010" key="CLJ">Clojure</project>
                        <description>&lt;p&gt;This code gives a NullPointerException:&lt;/p&gt;

&lt;p&gt;(case nil&lt;br/&gt;
   nil &quot;foo&quot;)&lt;/p&gt;

&lt;p&gt;If fixing this is impossible for implementation reasons, at least the documentation and error messages should be improved.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14311">CLJ-702</key>
            <summary>case gives NPE when used with nil</summary>
                <type id="1" iconUrl="http://dev.clojure.org/jira/images/icons/bug.gif">Defect</type>
                                <priority id="3" iconUrl="http://dev.clojure.org/jira/images/icons/priority_major.gif">Major</priority>
                    <status id="6" iconUrl="http://dev.clojure.org/jira/images/icons/status_closed.gif">Closed</status>
                    <resolution id="1">Completed</resolution>
                                <assignee username="-1">Unassigned</assignee>
                                <reporter username="bsteuber">Benjamin Teuber</reporter>
                        <labels>
                    </labels>
                <created>Tue, 4 Jan 2011 09:02:13 -0600</created>
                <updated>Fri, 25 Feb 2011 15:06:28 -0600</updated>
                    <resolved>Fri, 25 Feb 2011 15:06:28 -0600</resolved>
                            <version>Release 1.2</version>
                                <fixVersion>Release 1.3</fixVersion>
                                        <due></due>
                    <votes>1</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="26092" author="aaron" created="Wed, 5 Jan 2011 21:28:45 -0600"  >&lt;p&gt;What would be the desired fix look like for this?  Should this be a documentation update or should this be updated to not produce an NPE?&lt;/p&gt;</comment>
                    <comment id="26094" author="a_strange_guy" created="Thu, 6 Jan 2011 16:23:27 -0600"  >&lt;p&gt;I think that the case macro should just generate a null check before calling hashcode on a value. The same way protocol functions automatically check for null before dispatching.&lt;/p&gt;</comment>
                    <comment id="26097" author="richhickey" created="Fri, 7 Jan 2011 08:03:31 -0600"  >&lt;p&gt;First step in fixing a problem is to understand it. The exception is thrown during compilation and the stack trace points to c.l.Compiler$ObjExpression.constantType()&lt;/p&gt;</comment>
                    <comment id="26098" author="aaron" created="Fri, 7 Jan 2011 09:31:56 -0600"  >&lt;p&gt;Thanks Rich.  I will take this one and get a patch in hopefully today.&lt;/p&gt;</comment>
                    <comment id="26105" author="aaron" created="Fri, 7 Jan 2011 14:17:36 -0600"  >&lt;p&gt;Rich, this seems to solve the issue demonstrated in this ticket. I don&apos;t have full context on all possible impact points here. Can you please take a look at this and let me know if I missed anything?&lt;/p&gt;</comment>
                    <comment id="26114" author="richhickey" created="Mon, 10 Jan 2011 06:35:21 -0600"  >&lt;p&gt;looks ok at first glance&lt;/p&gt;</comment>
                    <comment id="26153" author="stuart.sierra" created="Fri, 21 Jan 2011 13:44:54 -0600"  >&lt;p&gt;New patch 0702-fix-npe-in-nil-case-2.patch.gz adds a test.&lt;/p&gt;</comment>
                    <comment id="26168" author="aaron" created="Tue, 25 Jan 2011 07:48:14 -0600"  >&lt;p&gt;Stuart, your patch replaces the original patch and the commit message doesn&apos;t reveal the intent of the fix.  It also overwrites me as the original patch submitter.&lt;/p&gt;</comment>
                    <comment id="26169" author="stuart.sierra" created="Tue, 25 Jan 2011 14:50:01 -0600"  >&lt;p&gt;Oops. Sorry. Will fix.&lt;/p&gt;</comment>
                    <comment id="26187" author="stu" created="Fri, 28 Jan 2011 10:23:31 -0600"  >&lt;p&gt;waiting on Stuart&apos;s patch tweak&lt;/p&gt;</comment>
                    <comment id="26197" author="stuart.sierra" created="Fri, 28 Jan 2011 15:00:37 -0600"  >&lt;p&gt;Patch 0702-fix-npe-in-nil-case-3.patch.gz replaces previous patches, but preserves correct commit messages and authors.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="10087" name="0702-fix-npe-in-nil-case-2.patch.gz" size="875" author="stuart.sierra" created="Fri, 21 Jan 2011 13:44:54 -0600" />
                    <attachment id="10097" name="0702-fix-npe-in-nil-case-3.patch.gz" size="1144" author="stuart.sierra" created="Fri, 28 Jan 2011 15:00:36 -0600" />
                    <attachment id="10072" name="0702-fix-npe-in-nil-case.patch" size="1058" author="aaron" created="Fri, 7 Jan 2011 14:17:36 -0600" />
                </attachments>
            <subtasks>
        </subtasks>
                <customfields>
                                <customfield id="customfield_10002" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                <customfieldname>Approval</customfieldname>
                <customfieldvalues>
                        <customfieldvalue key="10007">Ok</customfieldvalue>

                </customfieldvalues>
            </customfield>
                                                                                    <customfield id="customfield_10010" key="com.pyxis.greenhopper.jira:gh-global-rank">
                <customfieldname>Global Rank</customfieldname>
                <customfieldvalues>
                    
                </customfieldvalues>
            </customfield>
                                            <customfield id="customfield_10000" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                <customfieldname>Patch</customfieldname>
                <customfieldvalues>
                        <customfieldvalue key="10002">Code and Test</customfieldvalue>

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