Commit 68d53a5f authored by yangwu.jia's avatar yangwu.jia

Fix crash

parent 676d14dc
......@@ -160,11 +160,18 @@ public class FlutterViewContainerManager implements IContainerManager {
@Override
public IContainerRecord getLastGenerateRecord() {
final Collection<IContainerRecord> values = mRecordMap.values();
if(!values.isEmpty()) {
final ArrayList<IContainerRecord> array = new ArrayList<>(values);
return array.get(array.size()-1);
try {
final Collection<IContainerRecord> values = mRecordMap.values();
if(!values.isEmpty()) {
final ArrayList<IContainerRecord> array = new ArrayList<>(values);
return array.get(array.size()-1);
}
}catch (Throwable e){
Debuger.log("getLastGenerateRecord:"+e.getCause());
}
return null;
}
......
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 to comment