我得到这个语句的空指针异常。accountList是我从外部API调用获得的帐户列表。而且我确信一个非空的accountList值是returned.But,我对getTrxns()没有任何值有信心。因此,在处理之前,我检查是否存在Trxns,但这也会导致空指针异常。trxns;
public List<Trxn> getTrxns()
这是我的代码,我遇到的问题是数组越界错误。看着代码,我似乎找不出问题所在public class Dungeonprivate Cell[][] dungeon;private int width;private Hero hero;// Construct a new dungeon of the specified size.
// NOT