You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ti...@apache.org on 2012/10/30 23:10:46 UTC

svn commit: r1403896 - /incubator/flex/whiteboard/tink/navigators/src/ws/tink/spark/layouts/AccordionLayout.as

Author: tink
Date: Tue Oct 30 22:10:46 2012
New Revision: 1403896

URL: http://svn.apache.org/viewvc?rev=1403896&view=rev
Log:
Fixed bug where null pointer was thrown when the selected item was removed.

Modified:
    incubator/flex/whiteboard/tink/navigators/src/ws/tink/spark/layouts/AccordionLayout.as

Modified: incubator/flex/whiteboard/tink/navigators/src/ws/tink/spark/layouts/AccordionLayout.as
URL: http://svn.apache.org/viewvc/incubator/flex/whiteboard/tink/navigators/src/ws/tink/spark/layouts/AccordionLayout.as?rev=1403896&r1=1403895&r2=1403896&view=diff
==============================================================================
--- incubator/flex/whiteboard/tink/navigators/src/ws/tink/spark/layouts/AccordionLayout.as (original)
+++ incubator/flex/whiteboard/tink/navigators/src/ws/tink/spark/layouts/AccordionLayout.as Tue Oct 30 22:10:46 2012
@@ -918,7 +918,7 @@ package ws.tink.spark.layouts
 					
 					// Remove ElementSize items that are not in the layout.
 					indicesRequiredIndex = indicesRequired.indexOf( elementSize.displayListIndex );
-					if( indicesRequiredIndex == -1 && !elementSize.size )
+					if( indicesRequiredIndex == -1 || !elementSize.size )
 					{
 						_elementSizes.splice( i, 1 );
 					}