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

Fix crash

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