Make sure OS version is never set to 0 when loading SDK from cache.
--- a/core/com.nokia.carbide.cpp.sdk.core/src/com/nokia/carbide/cpp/internal/sdk/core/model/AbstractSDKManager.java Fri Jul 30 12:13:13 2010 -0500
+++ b/core/com.nokia.carbide.cpp.sdk.core/src/com/nokia/carbide/cpp/internal/sdk/core/model/AbstractSDKManager.java Fri Jul 30 13:10:27 2010 -0500
@@ -310,9 +310,13 @@
SDKManagerCacheEntry entry = getSDKCacheEntry(id);
ISymbianSDK sdk = getSDK(id, false);
if (sdk == null) {
+ Version osVersion = new Version(entry.getOsVersion());
+ if (osVersion.getMajor() == 0) {
+ osVersion = new Version("9.5");
+ }
sdk = SymbianSDKFactory.createInstance(id,
entry.getEpocRoot(),
- new Version(entry.getOsVersion()));
+ osVersion);
((SymbianSDK)sdk).setEnabled(entry.isEnabled());
synchronized (sdkList) {
sdkList.add(sdk);