Kaydet (Commit) 72f0f535 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1326400 Dereference null return value

Change-Id: Ie28d817d7be24b2de19f51e11786c0396a2e016f
üst 1cf6890a
......@@ -896,9 +896,9 @@ XMultiPropertySet
lc= aVetoableLC.getContainer(arEvts[i].PropertyName);
else
lc= aBoundLC.getContainer(arEvts[i].PropertyName);
if (lc != null)
Iterator it = lc != null ? lc.iterator() : null;
if (it != null)
{
Iterator it= lc.iterator();
while( it.hasNext())
{
Object listener= it.next();
......@@ -913,9 +913,9 @@ XMultiPropertySet
lc= listenerContainer.getContainer(XVetoableChangeListener.class);
else
lc= listenerContainer.getContainer(XPropertyChangeListener.class);
if(lc != null)
it = lc != null ? lc.iterator() : null;
if (it != null)
{
Iterator it= lc.iterator();
while(it.hasNext() )
{
Object listener= it.next();
......@@ -934,9 +934,9 @@ XMultiPropertySet
PropertyChangeEvent[] arReduced= new PropertyChangeEvent[nAffectedProps];
System.arraycopy(arEvts, 0, arReduced, 0, nAffectedProps);
InterfaceContainer lc= listenerContainer.getContainer(XPropertiesChangeListener.class);
if (lc != null)
Iterator it = lc != null ? lc.iterator() : null;
if (it != null)
{
Iterator it= lc.iterator();
while (it.hasNext())
{
XPropertiesChangeListener listener = (XPropertiesChangeListener) it.next();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment