if (javaElements != null && javaElements.length > 0)
if (javaElements != null && javaElements.length > 0 && javaElements[0] != null)
	private void verifyDisabled(IResource[] resources, IJavaElement[] javaElements) throws JavaModelException {		IJavaProject project= null;		if (javaElements != null && javaElements.length > 0)			project= javaElements[0].getJavaProject();		CodeGenerationSettings settings= JavaPreferencesSettings.getCodeGenerationSettings(project);		assertTrue("copy should be disabled", ! CopyRefactoring.isAvailable(resources, javaElements, settings));		CopyRefactoring refactoring2= CopyRefactoring.create(resources, javaElements, settings);		assertTrue(refactoring2 == null);	}