Fix NPE.
authorryall
Mon, 30 Aug 2010 14:54:10 -0600
changeset 1918 a3a658718ab3
parent 1917 4de816ec8ba5
child 1919 5c9cbbdfb5c2
Fix NPE.
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();