Java code
task.mCmds = new Task.Cmd[cmdLength];
Log.i("TASKS", " task cmds cmd len" + task.mCmds.length);
for (int i = 0; i < cmdLength; i++) {
parseOneCmd(cmdsAr[i], task.mCmds[i]);
}
task.mCmds 是一个Cmd对象数组, 我明明new了一个呀
结果传到 parseOneCmd(cmdsAr[i], task.mCmds[i]) 里
我打印的第二个参数为null!! 求解
|