AdapterName이 null이어서 NullPointerException 발생하는 문제 처리
This commit is contained in:
@@ -6,6 +6,7 @@ import java.util.HashMap;
|
|||||||
import java.util.Iterator;
|
import java.util.Iterator;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import org.apache.commons.lang3.StringUtils;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Component;
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
@@ -163,6 +164,9 @@ public class AdapterManager implements Lifecycle {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public AdapterVO getAdapterVO(String adapterGroupName, String adapterName) {
|
public AdapterVO getAdapterVO(String adapterGroupName, String adapterName) {
|
||||||
|
if(StringUtils.isAnyBlank(adapterGroupName, adapterName))
|
||||||
|
return null;
|
||||||
|
|
||||||
AdapterGroupVO gvo = adapterGroups.get(adapterGroupName);
|
AdapterGroupVO gvo = adapterGroups.get(adapterGroupName);
|
||||||
if (gvo == null)
|
if (gvo == null)
|
||||||
return null;
|
return null;
|
||||||
|
|||||||
Reference in New Issue
Block a user