if (parentConfiguration || Activator.getDefault().getConfigurationLocation().isReadOnly())
if (parentConfiguration || Activator.getDefault() == null || Activator.getDefault().getConfigurationLocation().isReadOnly())
	public OutputStream getOutputStream() throws IOException {		if (parentConfiguration || Activator.getDefault().getConfigurationLocation().isReadOnly())			throw new UnknownServiceException(NLS.bind(CommonMessages.url_noOutput, url));		//This is not optimal but connection is a private instance variable in the super-class.		URL resolved = getResolvedURL();		if (resolved != null) {			String fileString = resolved.getFile();			if (fileString != null) {				File file = new File(fileString);				String parent = file.getParent();				if (parent != null)					new File(parent).mkdirs();				return new FileOutputStream(file);			}		}		return null;	}