Allow No identifier

This commit is contained in:
Eric Stokes 2011-07-22 21:44:02 -06:00
parent 83aa79deed
commit 6ae22cf752

View File

@ -15,7 +15,11 @@ public class DestinationFactory {
}
public Destination getDestination(String dest) {
String idenChar = dest.substring(0, 1);
String idenChar = "";
if(dest.split(":").length > 1) {
idenChar = dest.substring(0, 1);
}
if (this.destList.containsKey(idenChar)) {
Class<? extends Destination> myClass = this.destList.get(idenChar);
try {