在dbConnection.prepareStatement(insertTableSQL); = preparedStatement =根据下面的代码行插入记录时,我得到了空指针异常 at com.mysql.jdbc.trace.Tracer.ajc$before$com_mysql_jdbc_trace_Tracer$1$f51c62b8(Tracer.aj:45)
at com.mysql.jdbc.Conn
我得到这个语句的空指针异常。accountList是我从外部API调用获得的帐户列表。而且我确信一个非空的accountList值是returned.But,我对getTrxns()没有任何值有信心。因此,在处理之前,我检查是否存在Trxns,但这也会导致空指针异常。trxns;
public List<Trxn> getTrxns()