# HG changeset patch # User ryall # Date 1283201650 21600 # Node ID a3a658718ab368b2351000aed8a730871579d7b9 # Parent 4de816ec8ba54d63a624e1d7f3d2bdd0af4d92b8 Fix NPE. diff -r 4de816ec8ba5 -r a3a658718ab3 core/com.nokia.carbide.cpp.sdk.core/src/com/nokia/carbide/cpp/internal/api/sdk/BuildContextSBSv2.java --- 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();