Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 312691
Collapse All | Expand All

(-)core/framework/org/eclipse/osgi/framework/console/ConsoleSession.java (-2 / +2 lines)
Lines 1-5 Link Here
1
/*******************************************************************************
1
/*******************************************************************************
2
 * Copyright (c) 2009 IBM Corporation and others.
2
 * Copyright (c) 2009, 2010 IBM Corporation and others.
3
 * All rights reserved. This program and the accompanying materials
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
5
 * which accompanies this distribution, and is available at
Lines 72-78 Link Here
72
	 * @noreference This method is not intended to be referenced by clients.
72
	 * @noreference This method is not intended to be referenced by clients.
73
	 */
73
	 */
74
	public final Object getService(Bundle bundle, ServiceRegistration registration) {
74
	public final Object getService(Bundle bundle, ServiceRegistration registration) {
75
		if (sessionRegistration != null)
75
		if (sessionRegistration == null)
76
			sessionRegistration = registration;
76
			sessionRegistration = registration;
77
		return this;
77
		return this;
78
	}
78
	}

Return to bug 312691