I have a weird issue debugging an android app. To be precise, I copy here the exact code I'm running on:
// Get the puzzles from cache List<PuzzleDetails> newPuzzles = m_cachedPuzzles.getPuzzles(count); if(newPuzzles.size() > 0){ // Remove from cache m_cachedPuzzles.removePuzzles(newPuzzles); // LINE (A) // Add the new puzzles from cache immediately m_ownedPuzzles.addPuzzles(newPuzzles); Log.d("requests", "" + newPuzzles.size() + " moved from cache to user"); } int left = count - newPuzzles.size(); String deviceId = ResourcesPublisher.getInstance().getDeviceId(); // Don't let anyone else use these points for now ChallengePointsManagerImpl.getInstance().usePoints(left); Log.d("requests", "aquirePuzzles(" + left + ")"); // Get a list of requests for 'left' number of puzzles RequestList reqList = getRequestList(left); // TODO this is a bug, now if(reqList.size() > 1){ reqList = getRequestList(left); // LINE (B) }
When I run this code, after following the line (A) m_cachedPuzzles.removePuzzles (newPuzzles); The debugger "jumps" to the last line (B) reqList = getRequestList (left);
A simple check shows that he really missed all the code between these code lines. For example, Log.d (...) has never been called or written.
Can someone give me a clue why this is happening ???
Thanks!
user1028741
source share