[bug] fix bug of getBrokerDesc object is null (#5295)
Co-authored-by: wangxiaobaidu11 <328642799@qq.com>
This commit is contained in:
@ -102,7 +102,7 @@ public class LoadManager implements Writable{
|
||||
LoadJob loadJob = null;
|
||||
writeLock();
|
||||
try {
|
||||
if (stmt.getBrokerDesc().isMultiLoadBroker()) {
|
||||
if (stmt.getBrokerDesc() != null && stmt.getBrokerDesc().isMultiLoadBroker()) {
|
||||
if (!Catalog.getCurrentCatalog().getLoadInstance()
|
||||
.isUncommittedLabel(dbId, stmt.getLabel().getLabelName())) {
|
||||
throw new DdlException("label: " + stmt.getLabel().getLabelName() + " not found!") ;
|
||||
|
||||
Reference in New Issue
Block a user