Bug 124600 delete Grid Column causes NPE thrown out in error log
steps to reproduce: - insert a 3*3 grid - delete grid columns one by one expected behavior: - these operations should completed without any error. actual behavior: - after i deleted the 3rd column, NPE was thrown out in error log.
UI/org.eclipse.birt.report.designer.core/src/org/eclipse/birt/report/designer/util/DNDUtil.java
.getInstance( ).getColumnHandleAdapter( obj );
					columnNumber = columnAdapter.getColumnNumber( );
					parent = getTableParent( (DesignElementHandle) obj );
				}
				else if ( obj instanceof CellHandle )
				{
					CellHandleAdapter cellAdapter = HandleAdapterFactory
							.getInstance( ).getCellHandleAdapter( obj );
					columnNumber = cellAdapter.getColumnNumber( );
					parent = getTableParent( (DesignElementHandle) obj );
				}
			}
		}
		ColumnPosition position = null;
		for ( int i = 0; i < objs.length; i++ )
		{
			ColumnPosition newPosi = new ColumnPosition( objs[i] );
			if ( position == null )
			{
				position = newPosi;
			}
			else if ( position.columnNumber != newPosi.columnNumber
					|| position.parent != newPosi.parent )
			{
				return false;
			}
		}
		return true;
	}
}