Index: /home/minack/svn/aduna/sesame2-2.1-src/core/sail/nativerdf/src/main/java/org/openrdf/sail/nativerdf/TripleStore.java
===================================================================
--- /home/minack/svn/aduna/sesame2-2.1-src/core/sail/nativerdf/src/main/java/org/openrdf/sail/nativerdf/TripleStore.java	(revision 7259)
+++ /home/minack/svn/aduna/sesame2-2.1-src/core/sail/nativerdf/src/main/java/org/openrdf/sail/nativerdf/TripleStore.java	(working copy)
@@ -196,7 +196,7 @@
 			}
 		}
 
-		Set<String> indexSpecs = parseIndexSpecList(indexSpecStr);
+		Set<String> indexSpecs = parseIndexSpecList(indexSpecStr, properties.getProperty(INDEXES_KEY));
 
 		if (indexSpecs.isEmpty()) {
 			// Create default spoc and posc indexes
@@ -234,13 +234,16 @@
 	/**
 	 * Parses a comma/whitespace-separated list of index specifications. Index
 	 * specifications are required to consists of 4 characters: 's', 'p', 'o' and
-	 * 'c'.
+	 * 'c'. If the given index specifications is null, the default index spec string
+	 * is used instead.
 	 * 
 	 * @param indexSpecStr
 	 *        A string like "spoc, pocs, cosp".
+	 * @param indexSpecDefaultStr
+	 *        The default string in the same format as the indexSpecStr
 	 * @return A Set containing the parsed index specifications.
 	 */
-	private Set<String> parseIndexSpecList(String indexSpecStr)
+	private Set<String> parseIndexSpecList(String indexSpecStr, String indexSpecDefaultStr)
 		throws SailException
 	{
 		Set<String> indexes = new HashSet<String>();
@@ -245,6 +248,10 @@
 	{
 		Set<String> indexes = new HashSet<String>();
 
+		if (indexSpecStr == null) {
+			indexSpecStr = indexSpecDefaultStr;
+		}
+		
 		if (indexSpecStr != null) {
 			StringTokenizer tok = new StringTokenizer(indexSpecStr, ", \t");
 			while (tok.hasMoreTokens()) {
@@ -275,7 +282,7 @@
 			return;
 		}
 
-		Set<String> currentIndexSpecs = parseIndexSpecList(currentIndexSpecStr);
+		Set<String> currentIndexSpecs = parseIndexSpecList(currentIndexSpecStr, null);
 
 		if (currentIndexSpecs.isEmpty()) {
 			throw new SailException("Invalid index specification found in index properties");

