Index: branches/lucene-search-2.1/src/org/wikimedia/lsearch/search/SearcherCache.java |
— | — | @@ -608,10 +608,12 @@ |
609 | 609 | Configuration config = Configuration.open(); |
610 | 610 | searchPoolSize = config.getInt("SearcherPool","size",1); |
611 | 611 | String[] specials = config.getArray("SearcherPool", "special"); |
612 | | - for(String s : specials){ |
613 | | - String[] parts = s.split(":"); |
614 | | - if(parts.length == 2) |
615 | | - specialPoolSizes.put( parts[0].trim(), new Integer(parts[1].trim())); |
| 612 | + if( specials != null){ |
| 613 | + for(String s : specials){ |
| 614 | + String[] parts = s.split(":"); |
| 615 | + if(parts.length == 2) |
| 616 | + specialPoolSizes.put( parts[0].trim(), new Integer(parts[1].trim())); |
| 617 | + } |
616 | 618 | } |
617 | 619 | initialDeploymentThreads = config.getInt("SearcherPool", "initThreads",1); |
618 | 620 | if(initialize){ |