Fix NPE.
--- a/core/com.nokia.carbide.cpp.sdk.core/src/com/nokia/carbide/cpp/internal/api/sdk/BuildContextSBSv2.java Mon Aug 30 14:58:50 2010 -0500
+++ b/core/com.nokia.carbide.cpp.sdk.core/src/com/nokia/carbide/cpp/internal/api/sdk/BuildContextSBSv2.java Mon Aug 30 14:54:10 2010 -0600
@@ -394,7 +394,7 @@
*/
public IPath getPrefixFromVariantCfg(){
ISBSv2BuildInfo sbsv2BldInfo = ((ISBSv2BuildInfo)getSDK().getBuildInfo(ISymbianBuilderID.SBSV2_BUILDER));
- if (sbsv2BldInfo.getPrefixFromVariantCfg().toOSString().length() == 0){
+ if (sbsv2BldInfo.getPrefixFromVariantCfg()== null || sbsv2BldInfo.getPrefixFromVariantCfg().toOSString().length() == 0){
return null;
}
return sbsv2BldInfo.getPrefixFromVariantCfg();