diff options
author | Thomas Watson | 2010-05-12 19:20:47 +0000 |
---|---|---|
committer | Thomas Watson | 2010-05-12 19:20:47 +0000 |
commit | adc641505372b3c862530906dfbcdac9f573fccb (patch) | |
tree | ad425923e95de1f7e1530c585d9a54b7954959b6 /bundles | |
parent | 0a4cbca106517ed8ca9855fcf87f0c2e26f1dbd0 (diff) | |
download | rt.equinox.framework-adc641505372b3c862530906dfbcdac9f573fccb.tar.gz rt.equinox.framework-adc641505372b3c862530906dfbcdac9f573fccb.tar.xz rt.equinox.framework-adc641505372b3c862530906dfbcdac9f573fccb.zip |
Bug 312691 - ConsoleSession.getService method does not save the service registration properly
Diffstat (limited to 'bundles')
-rw-r--r-- | bundles/org.eclipse.osgi/core/framework/org/eclipse/osgi/framework/console/ConsoleSession.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.osgi/core/framework/org/eclipse/osgi/framework/console/ConsoleSession.java b/bundles/org.eclipse.osgi/core/framework/org/eclipse/osgi/framework/console/ConsoleSession.java index c70459234..0dbbfc17a 100644 --- a/bundles/org.eclipse.osgi/core/framework/org/eclipse/osgi/framework/console/ConsoleSession.java +++ b/bundles/org.eclipse.osgi/core/framework/org/eclipse/osgi/framework/console/ConsoleSession.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2009 IBM Corporation and others. + * Copyright (c) 2009, 2010 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -72,7 +72,7 @@ public abstract class ConsoleSession implements ServiceFactory { * @noreference This method is not intended to be referenced by clients. */ public final Object getService(Bundle bundle, ServiceRegistration registration) { - if (sessionRegistration != null) + if (sessionRegistration == null) sessionRegistration = registration; return this; } |