SEARCH-188: Adding null check

This commit is contained in:
Gethin James
2016-10-31 11:24:15 +01:00
parent 50faa87fce
commit 06fab81775
@@ -65,7 +65,7 @@ public class PropertyRouter implements DocRouter
}
String shardBy = node.getShardPropertyValue();
if (pattern != null)
if (shardBy !=null && pattern != null)
{
try
{