Commit 71bcc145 by mReturn

修复工单数据异常导致应用闪退的问题

parent 3b9216cf
......@@ -57,6 +57,10 @@ public class MultipleProcessPresenter extends MultipleProcessContract.Presenter
public void onAttached() {
mAccountId = Integer.parseInt(UserManager.getInstance().getUser().getAccountId());
mSpus = mView.getBundle().getParcelableArrayList(OrderConstant.SPUS);
if (mSpus == null || mSpus.size() ==0){
mView.showToast("数据异常");
return;
}
int type = mView.getBundle().getInt(OrderConstant.ORDER_TYPE);
mDatas.set(mSpus);
if (mSpus.size() == 1 && type == 1) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment