{"action":"created","issue":{"url":"https://api.github.com/repos/neo4j-contrib/neo4j_doc_manager/issues/43","labels_url":"https://api.github.com/repos/neo4j-contrib/neo4j_doc_manager/issues/43/labels{/name}","comments_url":"https://api.github.com/repos/neo4j-contrib/neo4j_doc_manager/issues/43/comments","events_url":"https://api.github.com/repos/neo4j-contrib/neo4j_doc_manager/issues/43/events","html_url":"https://github.com/neo4j-contrib/neo4j_doc_manager/issues/43","id":111299323,"number":43,"title":"AttributeError on document insertion","user":{"login":"johnymontana","id":1222454,"avatar_url":"https://avatars.githubusercontent.com/u/1222454?v=3","gravatar_id":"","url":"https://api.github.com/users/johnymontana","html_url":"https://github.com/johnymontana","followers_url":"https://api.github.com/users/johnymontana/followers","following_url":"https://api.github.com/users/johnymontana/following{/other_user}","gists_url":"https://api.github.com/users/johnymontana/gists{/gist_id}","starred_url":"https://api.github.com/users/johnymontana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnymontana/subscriptions","organizations_url":"https://api.github.com/users/johnymontana/orgs","repos_url":"https://api.github.com/users/johnymontana/repos","events_url":"https://api.github.com/users/johnymontana/events{/privacy}","received_events_url":"https://api.github.com/users/johnymontana/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-14T00:36:19Z","updated_at":"2015-10-15T14:25:54Z","closed_at":null,"body":"When importing documents mongo connector crashed with this error:\r\n\r\n~~~\r\nmongo-connector -v -m localhost:27017 -t http://localhost:7474/db/data -n catalog.course,catalog.category,catalog.university,catalog.instructor,catalog.student,catalog.course_taken -d neo4j_doc_manager\r\nLogging to mongo-connector.log.\r\nException in thread Thread-2:\r\nTraceback (most recent call last):\r\n  File \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py\", line 810, in __bootstrap_inner\r\n    self.run()\r\n  File \"/Library/Python/2.7/site-packages/mongo_connector/util.py\", line 85, in wrapped\r\n    func(*args, **kwargs)\r\n  File \"/Library/Python/2.7/site-packages/mongo_connector/oplog_manager.py\", line 256, in run\r\n    docman.upsert(doc, ns, timestamp)\r\n  File \"/Users/lyonwj/neotechnology/devtmp/forks/neo4j_doc_manager/mongo_connector/doc_managers/neo4j_doc_manager.py\", line 60, in upsert\r\n    builder = NodesAndRelationshipsBuilder(doc, doc_type, doc_id)\r\n  File \"/Users/lyonwj/neotechnology/devtmp/forks/neo4j_doc_manager/mongo_connector/doc_managers/nodes_and_relationships_builder.py\", line 17, in __init__\r\n    self.build_nodes_query(doc_type, doc, doc_id)\r\n  File \"/Users/lyonwj/neotechnology/devtmp/forks/neo4j_doc_manager/mongo_connector/doc_managers/nodes_and_relationships_builder.py\", line 30, in build_nodes_query\r\n    self.build_nodes_query(key, document[key], id)\r\n  File \"/Users/lyonwj/neotechnology/devtmp/forks/neo4j_doc_manager/mongo_connector/doc_managers/nodes_and_relationships_builder.py\", line 35, in build_nodes_query\r\n    self.build_nodes_query(json_key, json, id)\r\n  File \"/Users/lyonwj/neotechnology/devtmp/forks/neo4j_doc_manager/mongo_connector/doc_managers/nodes_and_relationships_builder.py\", line 22, in build_nodes_query\r\n    for key in document.keys():\r\nAttributeError: 'NoneType' object has no attribute 'keys'\r\n~~~\r\n\r\nSteps to reproduce:\r\n* with neo4j doc manager running, import this [collection dump](https://dl.dropboxusercontent.com/u/67572426/course.json):\r\n~~~\r\nmongoimport -d catalog -c course --host=127.0.01 < course.json\r\n~~~"},"comment":{"url":"https://api.github.com/repos/neo4j-contrib/neo4j_doc_manager/issues/comments/148401409","html_url":"https://github.com/neo4j-contrib/neo4j_doc_manager/issues/43#issuecomment-148401409","issue_url":"https://api.github.com/repos/neo4j-contrib/neo4j_doc_manager/issues/43","id":148401409,"user":{"login":"hannelita","id":506426,"avatar_url":"https://avatars.githubusercontent.com/u/506426?v=3","gravatar_id":"","url":"https://api.github.com/users/hannelita","html_url":"https://github.com/hannelita","followers_url":"https://api.github.com/users/hannelita/followers","following_url":"https://api.github.com/users/hannelita/following{/other_user}","gists_url":"https://api.github.com/users/hannelita/gists{/gist_id}","starred_url":"https://api.github.com/users/hannelita/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hannelita/subscriptions","organizations_url":"https://api.github.com/users/hannelita/orgs","repos_url":"https://api.github.com/users/hannelita/repos","events_url":"https://api.github.com/users/hannelita/events{/privacy}","received_events_url":"https://api.github.com/users/hannelita/received_events","type":"User","site_admin":false},"created_at":"2015-10-15T14:25:54Z","updated_at":"2015-10-15T14:25:54Z","body":"Please refer to https://github.com/neo4j-contrib/neo4j_doc_manager/pull/45 "}}