<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:32:19 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>OpenDaylight JIRA</title>
    <link>https://jira.opendaylight.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>8.20.10</version>
        <build-number>820010</build-number>
        <build-date>22-06-2022</build-date>
    </build-info>


<item>
            <title>[OPNFLWPLUG-380] NPE caused by areObjectsEqual passed with storedMatch==null</title>
                <link>https://jira.opendaylight.org/browse/OPNFLWPLUG-380</link>
                <project id="10155" key="OPNFLWPLUG">OpenFlowPlugin</project>
                    <description>&lt;p&gt;Seeing these continually throughout our logs:&lt;/p&gt;

&lt;p&gt;2015-03-17 05:11:30,428 | WARN  | ds-oper-thread-0 | StatisticsManagerImpl            | 246 - org.opendaylight.openflowplugin.applications.statistics-manager - 0.1.0.SNAPSHOT | Unhandled exception during processing statistics. Restarting transaction chain.&lt;br/&gt;
java.lang.NullPointerException&lt;br/&gt;
	at org.opendaylight.openflowplugin.applications.statistics.manager.impl.helper.MatchComparatorFactory$11.areObjectsEqual(MatchComparatorFactory.java:211)&lt;span class=&quot;error&quot;&gt;&amp;#91;246:org.opendaylight.openflowplugin.applications.statistics-manager:0.1.0.SNAPSHOT&amp;#93;&lt;/span&gt;&lt;br/&gt;
	at org.opendaylight.openflowplugin.applications.statistics.manager.impl.helper.MatchComparatorFactory$11.areObjectsEqual(MatchComparatorFactory.java:205)&lt;span class=&quot;error&quot;&gt;&amp;#91;246:org.opendaylight.openflowplugin.applications.statistics-manager:0.1.0.SNAPSHOT&amp;#93;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;On further investigation:&lt;/p&gt;

&lt;p&gt;FlowComparatorFactory Line144 calls &lt;br/&gt;
-&amp;gt; matchComp.areObjectsEqual(statsMatch, storedMatch) where storedMatch==null.&lt;/p&gt;

&lt;p&gt;MatchComparatorFactory Line211 tries to access storedMatch.getEthernetMatch() where storedMatch==null.&lt;/p&gt;

&lt;p&gt;The real question is whether the case where storedMatch should ever be null&#8230; &lt;/p&gt;

&lt;p&gt;I think it is, as it is all kicked off by StatListenCommitFlow Line360, for which our cfgFlow is a &#8220;drop|null&#8221; which won&#8217;t have a match&#8230;&lt;/p&gt;

&lt;p&gt;Actually this repeated pattern of  &#8220;areObjectsEqual()&#8221; doesn&#8217;t seem to check if parameters are null before accessing their getters.&lt;/p&gt;

&lt;p&gt;areObjectsEqual should &lt;br/&gt;
if(storedMatch==null) return false;&lt;/p&gt;

&lt;p&gt;Submitting patch for fix with UnitTest&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="27648">OPNFLWPLUG-380</key>
            <summary>NPE caused by areObjectsEqual passed with storedMatch==null</summary>
                <type id="10104" iconUrl="https://jira.opendaylight.org/secure/viewavatar?size=xsmall&amp;avatarId=10303&amp;avatarType=issuetype">Bug</type>
                                                <status id="5" iconUrl="https://jira.opendaylight.org/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="green"/>
                                    <resolution id="10000">Done</resolution>
                                        <assignee username="alagalah">Keith Burns</assignee>
                                    <reporter username="alagalah">Keith Burns</reporter>
                        <labels>
                    </labels>
                <created>Wed, 18 Mar 2015 02:57:41 +0000</created>
                <updated>Mon, 27 Sep 2021 09:01:26 +0000</updated>
                            <resolved>Mon, 13 Apr 2015 16:39:39 +0000</resolved>
                                                                    <component>General</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="56569" author="alagalah" created="Wed, 18 Mar 2015 03:31:44 +0000"  >&lt;p&gt;&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/16738/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/16738/&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="56570" author="abhijit2511" created="Mon, 13 Apr 2015 16:39:39 +0000"  >&lt;p&gt;Looks like this has been fixed.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                            <customfield id="customfield_11400" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10208" key="com.atlassian.jira.plugin.system.customfieldtypes:textfield">
                        <customfieldname>External issue ID</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2861</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10201" key="com.atlassian.jira.plugin.system.customfieldtypes:url">
                        <customfieldname>External issue URL</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[https://bugs.opendaylight.org/show_bug.cgi?id=2861]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10000" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i030sn:</customfieldvalue>

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