{"action":"created","issue":{"url":"https://api.github.com/repos/nuvoleweb/integration/issues/6","repository_url":"https://api.github.com/repos/nuvoleweb/integration","labels_url":"https://api.github.com/repos/nuvoleweb/integration/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/nuvoleweb/integration/issues/6/comments","events_url":"https://api.github.com/repos/nuvoleweb/integration/issues/6/events","html_url":"https://github.com/nuvoleweb/integration/issues/6","id":131587080,"number":6,"title":"Exception when the field is not defined ","user":{"login":"antonov","id":765699,"avatar_url":"https://avatars.githubusercontent.com/u/765699?v=3","gravatar_id":"","url":"https://api.github.com/users/antonov","html_url":"https://github.com/antonov","followers_url":"https://api.github.com/users/antonov/followers","following_url":"https://api.github.com/users/antonov/following{/other_user}","gists_url":"https://api.github.com/users/antonov/gists{/gist_id}","starred_url":"https://api.github.com/users/antonov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antonov/subscriptions","organizations_url":"https://api.github.com/users/antonov/orgs","repos_url":"https://api.github.com/users/antonov/repos","events_url":"https://api.github.com/users/antonov/events{/privacy}","received_events_url":"https://api.github.com/users/antonov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-05T08:47:06Z","updated_at":"2016-02-09T11:34:10Z","closed_at":null,"body":"Hello! \r\n\r\nI am using your module to migrate the content with json.\r\n\r\nWhen a field is not exist in one of the languages defined in languages array, i have an exception produced in this line: \r\n\r\nhttps://github.com/nuvoleweb/integration/blob/7.x-1.x/src/Document/Document.php#L135\r\n\r\nUndefined property: stdClass::$und File /var/www/html/platform/sites/all/modules/contrib/integration/src/Document/Document.php, line 134(file: /var/www/html/platform/sites/all/modules/contrib/integration/src/Document/Document.php, line 134)\r\n\r\nError\tarray_shift() expects parameter 1 to be array, null given File /var/www/html/platform/sites/all/modules/contrib/integration/src/Document/Document.php, line 135\r\n\r\n\r\nIf i change the \"<\" symbol to \">\" it works fine but with a notice in line 134.\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/nuvoleweb/integration/issues/comments/181826653","html_url":"https://github.com/nuvoleweb/integration/issues/6#issuecomment-181826653","issue_url":"https://api.github.com/repos/nuvoleweb/integration/issues/6","id":181826653,"user":{"login":"antonov","id":765699,"avatar_url":"https://avatars.githubusercontent.com/u/765699?v=3","gravatar_id":"","url":"https://api.github.com/users/antonov","html_url":"https://github.com/antonov","followers_url":"https://api.github.com/users/antonov/followers","following_url":"https://api.github.com/users/antonov/following{/other_user}","gists_url":"https://api.github.com/users/antonov/gists{/gist_id}","starred_url":"https://api.github.com/users/antonov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antonov/subscriptions","organizations_url":"https://api.github.com/users/antonov/orgs","repos_url":"https://api.github.com/users/antonov/repos","events_url":"https://api.github.com/users/antonov/events{/privacy}","received_events_url":"https://api.github.com/users/antonov/received_events","type":"User","site_admin":false},"created_at":"2016-02-09T11:34:10Z","updated_at":"2016-02-09T11:34:10Z","body":"Hello @ademarco,\r\nThank you very much for a fix, i tried to import with the code from specified branch and now is working as expected.\r\nBest regards,\r\nArtem."}}