From d33e422cdd78b7b287df898fc283f27b15703d1c Mon Sep 17 00:00:00 2001 From: Kevin Doyle Date: Thu, 3 Apr 2008 00:02:56 +0000 Subject: [PATCH] [222825] NPE when changing profile on Work with User Actions Dialog --- .../rse/internal/useractions/ui/uda/SystemUDBaseManager.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rse/plugins/org.eclipse.rse.useractions/src/org/eclipse/rse/internal/useractions/ui/uda/SystemUDBaseManager.java b/rse/plugins/org.eclipse.rse.useractions/src/org/eclipse/rse/internal/useractions/ui/uda/SystemUDBaseManager.java index d0c2c38fea9..e35ce1f4af9 100644 --- a/rse/plugins/org.eclipse.rse.useractions/src/org/eclipse/rse/internal/useractions/ui/uda/SystemUDBaseManager.java +++ b/rse/plugins/org.eclipse.rse.useractions/src/org/eclipse/rse/internal/useractions/ui/uda/SystemUDBaseManager.java @@ -12,6 +12,7 @@ * David Dykstal (IBM) - [186589] move user types, user actions, and compile commands * API to the user actions plugin * Xuan Chen (IBM) - [222263] Need to provide a PropertySet Adapter for System Team View (cleanup some use action stuff) + * Kevin Doyle (IBM) - [222825] NPE when changing profile on Work with User Actions Dialog *******************************************************************************/ package org.eclipse.rse.internal.useractions.ui.uda; @@ -603,6 +604,8 @@ public abstract class SystemUDBaseManager implements IResourceChangeListener, IS if (profile.isDefaultPrivate()) // we only prime the user's private profile with default compile commands { udaRootPropertySet = createAndPrimeDocument(profile); + } else { + udaRootPropertySet = profile.createPropertySet(udaRootPropertySetName); } } else