diff --git a/solr/src/java/org/apache/solr/handler/component/QueryComponent.java b/solr/src/java/org/apache/solr/handler/component/QueryComponent.java index e52bc6295db..95cdb9af1e2 100644 --- a/solr/src/java/org/apache/solr/handler/component/QueryComponent.java +++ b/solr/src/java/org/apache/solr/handler/component/QueryComponent.java @@ -74,8 +74,7 @@ public class QueryComponent extends SearchComponent } rb.setFieldFlags( fieldFlags ); - String defType = params.get(QueryParsing.DEFTYPE); - defType = defType==null ? QParserPlugin.DEFAULT_QTYPE : defType; + String defType = params.get(QueryParsing.DEFTYPE,QParserPlugin.DEFAULT_QTYPE); if (rb.getQueryString() == null) { rb.setQueryString( params.get( CommonParams.Q ) );