if ( !( reportEditor.getActiveEditor( ) instanceof GraphicalEditorWithFlyoutPalette ) )
if ( reportEditor == null || !( reportEditor.getActiveEditor( ) instanceof GraphicalEditorWithFlyoutPalette ) ) {
	public static EditPartViewer getLayoutEditPartViewer( )	{		ReportEditor reportEditor = (ReportEditor) PlatformUI.getWorkbench( )				.getActiveWorkbenchWindow( )				.getActivePage( )				.getActiveEditor( );		if ( !( reportEditor.getActiveEditor( ) instanceof GraphicalEditorWithFlyoutPalette ) )			return null;		return ( (GraphicalEditorWithFlyoutPalette) reportEditor.getActiveEditor( ) ).getGraphicalViewer( );	}