{"action":"created","issue":{"url":"https://api.github.com/repos/mgonto/restangular/issues/910","labels_url":"https://api.github.com/repos/mgonto/restangular/issues/910/labels{/name}","comments_url":"https://api.github.com/repos/mgonto/restangular/issues/910/comments","events_url":"https://api.github.com/repos/mgonto/restangular/issues/910/events","html_url":"https://github.com/mgonto/restangular/issues/910","id":46007834,"number":910,"title":"Restangular TypeError: Cannot set property 'route' of null","user":{"login":"RobertVogt","id":5022736,"avatar_url":"https://avatars.githubusercontent.com/u/5022736?v=3","gravatar_id":"","url":"https://api.github.com/users/RobertVogt","html_url":"https://github.com/RobertVogt","followers_url":"https://api.github.com/users/RobertVogt/followers","following_url":"https://api.github.com/users/RobertVogt/following{/other_user}","gists_url":"https://api.github.com/users/RobertVogt/gists{/gist_id}","starred_url":"https://api.github.com/users/RobertVogt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RobertVogt/subscriptions","organizations_url":"https://api.github.com/users/RobertVogt/orgs","repos_url":"https://api.github.com/users/RobertVogt/repos","events_url":"https://api.github.com/users/RobertVogt/events{/privacy}","received_events_url":"https://api.github.com/users/RobertVogt/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mgonto/restangular/labels/cannot%20reproduce","name":"cannot reproduce","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2014-10-16T16:37:48Z","updated_at":"2015-02-24T15:35:12Z","closed_at":null,"body":"This is a Angular function that previously worked...\r\n\r\n```js\r\n    $scope.InsertLabelText = function () {\r\n\r\n    var MapText = $(\"#txtMapLabel\").val();\r\n    Restangular.setBaseUrl(BaseURL);\r\n\r\n    if (MapText != null) {\r\n        //Call WebAPI to enter text then refresh map.\r\n\r\n\r\n        var TextObjs = Restangular.all('PostObjects');\r\n        NewTextObject = {TypeMapId: \"5\", GrowerId: $(\"#GrowerName\").val(), CropYear: $(\"#CropYear\").val(), NAME: MapText, SHAPE: coordinates}\r\n\r\n        TextObjs.getList(NewTextObject).then(function (data) {\r\n            $scope.Label = data;\r\n            if ($scope.Label.Success = true) {\r\n\r\n                var geojson_format = new OpenLayers.Format.GeoJSON();\r\n                var Object_style = OpenLayers.Util.extend({}, layer_style);\r\n                Object_style.fillOpacity = 0.7;\r\n                Object_style.label = MapText;\r\n                Object_style.graphicZIndex = 4999;\r\n                Text.style = Object_style;\r\n                Text.addFeatures(geojson_format.read($scope.Label.TextObject));\r\n\r\n                LabelLine.destroyFeatures();\r\n            }\r\n            else {\r\n                console.log(data);\r\n                var Error = prompt($scope.Label.TextObject);\r\n                console.log(\"There was an error saving\");\r\n            }\r\n            $(\"#divMapInputText\").hide();\r\n        });\r\n\r\n\r\n    }\r\n\r\n};\r\n```\r\n\r\nIt fails on the call TextObjs.getList with the error \"TypeError: Cannot set property 'route' of null\"\r\n\r\nI have 3 other functions in the same controller with the same code pattern but they all work?\r\n\r\nHere is the whole error from chrome...\r\n\r\nTypeError: Cannot set property 'route' of null\r\nat g (http://localhost/FarmMapsMvc4/Scripts/ThirdParty/restangular.min.js:8:8705)\r\nat t (http://localhost/FarmMapsMvc4/Scripts/ThirdParty/restangular.min.js:8:11154)\r\nat http://localhost/FarmMapsMvc4/Scripts/ThirdParty/restangular.min.js:8:13225\r\nat http://localhost/FarmMapsMvc4/Scripts/ThirdParty/lodash.min.js:72:226\r\nat y (http://localhost/FarmMapsMvc4/Scripts/ThirdParty/lodash.min.js:16:110)\r\nat Function.Et (http://localhost/FarmMapsMvc4/Scripts/ThirdParty/lodash.min.js:72:191)\r\nat http://localhost/FarmMapsMvc4/Scripts/ThirdParty/restangular.min.js:8:13149\r\nat h (http://localhost/FarmMapsMvc4/Scripts/ThirdParty/angular.min.js:78:33)\r\nat http://localhost/FarmMapsMvc4/Scripts/ThirdParty/angular.min.js:78:266\r\nat Object.e.$eval (http://localhost/FarmMapsMvc4/Scripts/ThirdParty/angular.min.js:88:3"},"comment":{"url":"https://api.github.com/repos/mgonto/restangular/issues/comments/75778720","html_url":"https://github.com/mgonto/restangular/issues/910#issuecomment-75778720","issue_url":"https://api.github.com/repos/mgonto/restangular/issues/910","id":75778720,"user":{"login":"RobertVogt","id":5022736,"avatar_url":"https://avatars.githubusercontent.com/u/5022736?v=3","gravatar_id":"","url":"https://api.github.com/users/RobertVogt","html_url":"https://github.com/RobertVogt","followers_url":"https://api.github.com/users/RobertVogt/followers","following_url":"https://api.github.com/users/RobertVogt/following{/other_user}","gists_url":"https://api.github.com/users/RobertVogt/gists{/gist_id}","starred_url":"https://api.github.com/users/RobertVogt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RobertVogt/subscriptions","organizations_url":"https://api.github.com/users/RobertVogt/orgs","repos_url":"https://api.github.com/users/RobertVogt/repos","events_url":"https://api.github.com/users/RobertVogt/events{/privacy}","received_events_url":"https://api.github.com/users/RobertVogt/received_events","type":"User","site_admin":false},"created_at":"2015-02-24T15:35:12Z","updated_at":"2015-02-24T15:35:12Z","body":"Thanks for reaching out but this was months ago...I'm sure I don't know what it was refering to as I have moved to something else. \n\n----- Original Message -----\n\nFrom: \"Mike Grabowski\" <notifications@github.com> \nTo: \"mgonto/restangular\" <restangular@noreply.github.com> \nCc: \"RobertVogt\" <bob.vogt@comcast.net> \nSent: Tuesday, February 24, 2015 5:09:38 AM \nSubject: Re: [restangular] Restangular TypeError: Cannot set property 'route' of null (#910) \n\n\n\nCan you please create a JSFiddle with the code that can reproduce this? Thanks. \n\n— \nReply to this email directly or view it on GitHub . \n\n"}}