Shouldn't it be pCurLength = $scope.userTopics[i].PaperList.length;?