Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fix for NPE occuring during gtasks sync

  • Loading branch information...
commit 76bfd834dadd2951925d3352a7ebf2a9f2c4dbb0 1 parent 9b6150a
Tim Su authored October 25, 2010
5  astrid/plugin-src/com/todoroo/astrid/gtasks/GtasksTaskListUpdater.java
@@ -301,7 +301,10 @@ public void processTask(long taskId, Metadata metadata) {
301 301
                         sibling = previousTask.get();
302 302
                         for(int i = indent; i < previousIndent.get(); i++)
303 303
                             sibling = parents.get(sibling);
304  
-                        parent = parents.get(sibling);
  304
+                        if(parents.containsKey(sibling))
  305
+                            parent = parents.get(sibling);
  306
+                        else
  307
+                            parent = -1L;
305 308
                     }
306 309
                     parents.put(taskId, parent);
307 310
                     siblings.put(taskId, sibling);

0 notes on commit 76bfd83

Please sign in to comment.
Something went wrong with that request. Please try again.