--- a/core/com.nokia.carbide.cpp.sdk.ui/src/com/nokia/carbide/cpp/internal/sdk/ui/SDKPreferencePage.java Tue Aug 03 14:05:25 2010 -0500
+++ b/core/com.nokia.carbide.cpp.sdk.ui/src/com/nokia/carbide/cpp/internal/sdk/ui/SDKPreferencePage.java Tue Aug 03 14:42:22 2010 -0500
@@ -104,7 +104,8 @@
* @see org.eclipse.ui.IWorkbenchPreferencePage#init(org.eclipse.ui.IWorkbench)
*/
public void init(IWorkbench workbench) {
- sdkMgr = SDKCorePlugin.getSDKManager();
+ if (sdkMgr == null)
+ sdkMgr = SDKCorePlugin.getSDKManager();
if (sdkMgr != null)
sdkList = sdkMgr.getSDKList();
}
@@ -115,6 +116,8 @@
public void createControl(Composite parent) {
IPreferenceStore prefsStore = SDKUIPlugin.getDefault().getPreferenceStore();
+ if (sdkMgr == null)
+ sdkMgr = SDKCorePlugin.getSDKManager();
if (sdkMgr == null){
return;
}