java.lang.IllegalArgumentException: No destination bean specified

About java.lang.IllegalArgumentException: No destination bean specified exception:

    No destination bean specified This is the destination bean entity is not determined, the exception code is as follows:

 

    CrmProcessOrdersParam crmProcessOrdersParam = null;
    BeanUtils.copyProperties (crmProcessOrdersParam, crmProcessOrdersBean);

 

    The main reason for the problem is that in the process of copying objects, if one of the parties is null, this exception will be thrown! So just instantiate the target entity.

    Corrected code:

    CrmProcessOrdersParam crmProcessOrdersParam = new CrmProcessOrdersParam ();
    BeanUtils.copyProperties (crmProcessOrdersParam, crmProcessOrdersBean);

 

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326390213&siteId=291194637