{"action":"closed","issue":{"url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/1078","labels_url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/1078/labels{/name}","comments_url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/1078/comments","events_url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/1078/events","html_url":"https://github.com/danialfarid/ng-file-upload/issues/1078","id":112439878,"number":1078,"title":"error when ngf-keep is used.","user":{"login":"joshikeerti","id":4743751,"avatar_url":"https://avatars.githubusercontent.com/u/4743751?v=3","gravatar_id":"","url":"https://api.github.com/users/joshikeerti","html_url":"https://github.com/joshikeerti","followers_url":"https://api.github.com/users/joshikeerti/followers","following_url":"https://api.github.com/users/joshikeerti/following{/other_user}","gists_url":"https://api.github.com/users/joshikeerti/gists{/gist_id}","starred_url":"https://api.github.com/users/joshikeerti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshikeerti/subscriptions","organizations_url":"https://api.github.com/users/joshikeerti/orgs","repos_url":"https://api.github.com/users/joshikeerti/repos","events_url":"https://api.github.com/users/joshikeerti/events{/privacy}","received_events_url":"https://api.github.com/users/joshikeerti/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-20T19:10:32Z","updated_at":"2015-10-20T19:33:49Z","closed_at":"2015-10-20T19:33:49Z","body":"I have the latest version of the library and I am trying to use ngf-keep=\"'distinct'\", I am geting an error \r\nUncaught TypeError: Cannot read property 'length' of null\r\n\r\nI  went into the code and found that the error is in model.js file. It is getting the prevFiles length as null.\r\n\r\nfunction handleKeep(files, prevFiles, attr, scope) {\r\n var len = prevFiles.length;\r\n}"}}