<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:51:43 UTC 2024

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>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[JAVA-195] NullPointerException in Mongo.close() if no connections present</title>
                <link>https://jira.mongodb.org/browse/JAVA-195</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;The following code&lt;/p&gt;

&lt;p&gt;public static void main(String[] args) {&lt;br/&gt;
	try &lt;/p&gt;
{
		Mongo m = new Mongo(&quot;192.168.1.16&quot;,27017);
		m.close();
	}
&lt;p&gt; catch (Exception e) &lt;/p&gt;
{
		e.printStackTrace();
	}
&lt;p&gt;}&lt;/p&gt;

&lt;p&gt;I get the following stacktrace:&lt;/p&gt;

&lt;p&gt;java.lang.NullPointerException&lt;br/&gt;
	at com.mongodb.DBTCPConnector.close(DBTCPConnector.java:352)&lt;br/&gt;
	at com.mongodb.Mongo.close(Mongo.java:297)&lt;br/&gt;
	at com.example.MongoError.main(MongoError.java:11)&lt;/p&gt;</description>
                <environment>Fedora Linux hp1 2.6.34.6-54.fc13.x86_64 #1 SMP Sun Sep 5 17:16:27 UTC 2010 x86_64 x86_64 x86_64 GNU/Linux</environment>
        <key id="13448">JAVA-195</key>
            <summary>NullPointerException in Mongo.close() if no connections present</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="3">Duplicate</resolution>
                                        <assignee username="eliot">Eliot Horowitz</assignee>
                                    <reporter username="skoufos">Lucas Zamboulis</reporter>
                        <labels>
                    </labels>
                <created>Thu, 21 Oct 2010 16:58:13 +0000</created>
                <updated>Thu, 21 Oct 2010 22:09:43 +0000</updated>
                            <resolved>Thu, 21 Oct 2010 22:09:43 +0000</resolved>
                                    <version>2.2</version>
                                    <fixVersion>2.3</fixVersion>
                                                        <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="19468" author="eliot" created="Thu, 21 Oct 2010 22:09:43 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-180&quot; title=&quot;NullPointerException when calling Mongo.close() on unpaired server&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-180&quot;&gt;&lt;del&gt;JAVA-180&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hrhcpr:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>14860</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>