Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rapicault2011-06-13 00:27:35 +0000
committerPascal Rapicault2011-06-13 00:27:35 +0000
commitc8f799c853ad1e6d243b384252cd938bf5557e34 (patch)
tree57ad24dad5249bf7c2fddf59f6d6a4f3f523c169
parentd46442a960e406a13d9d72dda06bce56e7fc9004 (diff)
downloadrt.equinox.p2-c8f799c853ad1e6d243b384252cd938bf5557e34.tar.gz
rt.equinox.p2-c8f799c853ad1e6d243b384252cd938bf5557e34.tar.xz
rt.equinox.p2-c8f799c853ad1e6d243b384252cd938bf5557e34.zip
Fix NPE caused by direct access to the field
-rw-r--r--bundles/org.eclipse.equinox.p2.ui.admin/src/org/eclipse/equinox/internal/p2/ui/admin/ProfilesView.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/bundles/org.eclipse.equinox.p2.ui.admin/src/org/eclipse/equinox/internal/p2/ui/admin/ProfilesView.java b/bundles/org.eclipse.equinox.p2.ui.admin/src/org/eclipse/equinox/internal/p2/ui/admin/ProfilesView.java
index b9a91fc03..73ca264c7 100644
--- a/bundles/org.eclipse.equinox.p2.ui.admin/src/org/eclipse/equinox/internal/p2/ui/admin/ProfilesView.java
+++ b/bundles/org.eclipse.equinox.p2.ui.admin/src/org/eclipse/equinox/internal/p2/ui/admin/ProfilesView.java
@@ -82,13 +82,13 @@ public class ProfilesView extends ProvView {
protected void addListeners() {
super.addListeners();
- listener = new StructuredViewerProvisioningListener(getClass().getName(), viewer, ProvUIProvisioningListener.PROV_EVENT_IU | ProvUIProvisioningListener.PROV_EVENT_PROFILE, ui.getOperationRunner());
- ProvUI.getProvisioningEventBus(ui.getSession()).addListener(listener);
+ listener = new StructuredViewerProvisioningListener(getClass().getName(), viewer, ProvUIProvisioningListener.PROV_EVENT_IU | ProvUIProvisioningListener.PROV_EVENT_PROFILE, getProvisioningUI().getOperationRunner());
+ ProvUI.getProvisioningEventBus(getProvisioningUI().getSession()).addListener(listener);
}
protected void removeListeners() {
super.removeListeners();
- ProvUI.getProvisioningEventBus(ui.getSession()).removeListener(listener);
+ ProvUI.getProvisioningEventBus(getProvisioningUI().getSession()).removeListener(listener);
}
protected void configureViewer(TreeViewer treeViewer) {

Back to the top