kongzue / kongzue/BaseFramework

JUMP跳转之后List被置为空

Open
#6 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
536
Forks
75
PR merge metrics
No merged PRs in 30d

Description

setEvents()方法中写下代码直接跳转B界面。我打断点发现刚开始跳转的时候list的数据为四条,B界面关闭回来list直接为空 设置数据报错应用崩掉
jump(datas.get(i).getmClass(), new OnJumpResponseListener() {
@Override
public void OnResponse(JumpParameter jumpParameter) {
if (jumpParameter == null) {
toast("未返回任何数据");
datas.get(finalI).setmResult("false");
} else {
String result_text = String.valueOf(jumpParameter.get("返回数据1"));
if (result_text.equals("true")) {
datas.get(finalI).setmResult("true");
}else {
datas.get(finalI).setmResult("false");
}
}
}
});

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at setEvents() and trace the jump callback through the transition to and return from the B interface. Reproduce the case with four list entries, then inspect why the list is empty before datas.get(finalI) is updated. Done means returning from B preserves the list and the result update no longer crashes the app.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.