homescreensrv_plat/sapi_homescreenplugin/src/hspsliwutilities.cpp
changeset 3 ff572005ac23
parent 0 79c6a41cd166
child 4 1a2a00e78665
--- a/homescreensrv_plat/sapi_homescreenplugin/src/hspsliwutilities.cpp	Mon Jan 18 20:32:13 2010 +0200
+++ b/homescreensrv_plat/sapi_homescreenplugin/src/hspsliwutilities.cpp	Tue Jan 26 12:11:15 2010 +0200
@@ -683,12 +683,15 @@
 	    	
 	    	ChspsDomAttribute* attr = static_cast<ChspsDomAttribute*>( 
 	    							      attrList.FindByName( KAttrId ));
-	    	const TDesC8& value = attr->Value();
-	        if( value.Compare( aNodeIdentifier ) == 0 )
-	        	{
-	        	found = ETrue;
-	        	targetNode = node;
-	        	}
+	    	if ( attr )
+	    	    {
+                const TDesC8& value = attr->Value();
+                if( value.Compare( aNodeIdentifier ) == 0 )
+                    {
+                    found = ETrue;
+                    targetNode = node;
+                    }
+	    	    }
 	    	}
 	    node = iter->NextL();
 		}