Index: /issm/trunk/src/c/shared/String/DescriptorIndex.cpp
===================================================================
--- /issm/trunk/src/c/shared/String/DescriptorIndex.cpp	(revision 5469)
+++ /issm/trunk/src/c/shared/String/DescriptorIndex.cpp	(revision 5470)
@@ -20,5 +20,5 @@
 	
 	char * pch=NULL;
-	
+
 	/*retrieve first token, separated by underscore: */
 	pch = strtok (descriptor,"_");
@@ -30,8 +30,12 @@
 		if(!pch)ISSMERROR("%s%s%s"," scaled descriptor ",descriptor," is not correctly formatted!");
 		strcpy(root,pch);
-		/*now recover  the index: */
+		/*now recover  the index if it exists: */
 		pch = strtok (NULL, "_");
-		sscanf(pch,"%i",pindex);
-		if(!pch)ISSMERROR("%s%s%s"," scaled descriptor ",descriptor," is not correctly formatted!");
+		if(!pch){
+			*pindex=-1;
+		}
+		else{
+			sscanf(pch,"%i",pindex);
+		}
 		return ScaledEnum;
 	}
